android-components / mozilla.components.feature.findinpage / FindInPageFeature

FindInPageFeature

class FindInPageFeature : LifecycleAwareFeature, BackHandler (source)

Feature implementation that will keep a FindInPageView in sync with a bound SessionState.

Constructors

Name Summary
<init> FindInPageFeature(store: BrowserStore, view: FindInPageView, engineView: EngineView, onClose: () -> Unit = null)
Feature implementation that will keep a FindInPageView in sync with a bound SessionState.

Functions

Name Summary
bind fun bind(session: SessionState): Unit
Binds this feature to the given SessionState. Until unbound the FindInPageView will be updated presenting the current “Find in Page” state.
onBackPressed fun onBackPressed(): Boolean
Returns true if the back button press was handled and the feature unbound from a session.
start fun start(): Unit
stop fun stop(): Unit
unbind fun unbind(): Unit
Unbinds the feature from a previously bound SessionState. The FindInPageView will be cleared and not be updated to present the “Find in Page” state anymore.