-init-.md 1.15 KB
Newer Older
MickeyMoz's avatar
MickeyMoz committed
1
2
3
4
[android-components](../../index.md) / [mozilla.components.feature.search](../index.md) / [SearchFeature](index.md) / [<init>](./-init-.md)

# <init>

MickeyMoz's avatar
MickeyMoz committed
5
`SearchFeature(store: `[`BrowserStore`](../../mozilla.components.browser.state.store/-browser-store/index.md)`, tabId: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = null, performSearch: (`[`SearchRequest`](../../mozilla.components.concept.engine.search/-search-request/index.md)`, tabId: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`) -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)`
MickeyMoz's avatar
MickeyMoz committed
6
7
8
9
10

Lifecycle aware feature that forwards [SearchRequest](../../mozilla.components.concept.engine.search/-search-request/index.md)s from the [store](#) to [performSearch](#), and
then consumes them.

NOTE: that this only consumes SearchRequests, and will not hook up the [store](#) to a source of
MickeyMoz's avatar
MickeyMoz committed
11
12
SearchRequests. See [mozilla.components.concept.engine.selection.SelectionActionDelegate](../../mozilla.components.concept.engine.selection/-selection-action-delegate/index.md) for use
in generating SearchRequests.
MickeyMoz's avatar
MickeyMoz committed
13