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


class FindInPageBar : ConstraintLayout, FindInPageView (source)

A customizable “Find in page” bar implementing FindInPageView.


Name Summary
<init> FindInPageBar(context: <ERROR CLASS>, attrs: <ERROR CLASS>? = null, defStyleAttr: Int = 0)
A customizable “Find in page” bar implementing FindInPageView.


Name Summary
listener var listener: Listener?
Listener to be invoked after the user performs certain actions (e.g. “find next result”).
private var private: Boolean
Sets/gets private mode.


Name Summary
clear fun clear(): Unit
Clears the UI state.
displayResult fun displayResult(result: FindResultState): Unit
Displays the given FindResultState state in the view.
focus fun focus(): Unit
Requests focus for the input element the user can type their query into.

Inherited Functions

Name Summary
asView open fun asView(): <ERROR CLASS>
Casts this FindInPageView interface to an actual Android View object.

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.