android-components / mozilla.components.feature.findinpage.view / FindInPageView


interface FindInPageView (source)

An interface for views that can display “find in page” results and related UI controls.


Name Summary
Listener interface Listener


Name Summary
listener abstract var listener: Listener?
Listener to be invoked after the user performs certain actions (e.g. “find next result”).


Name Summary
asView open fun asView(): <ERROR CLASS>
Casts this FindInPageView interface to an actual Android View object.
clear abstract fun clear(): Unit
Clears the UI state.
displayResult abstract fun displayResult(result: FindResultState): Unit
Displays the given FindResultState state in the view.
focus abstract fun focus(): Unit
Requests focus for the input element the user can type their query into.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.


Name Summary
FindInPageBar class FindInPageBar : ConstraintLayout, FindInPageView
A customizable “Find in page” bar implementing FindInPageView.