android-components / mozilla.components.feature.readerview.view / ReaderViewControlsView


interface ReaderViewControlsView (source)

An interface for views that can display ReaderView appearance controls (e.g. font size, font type).


Name Summary
Listener interface Listener


Name Summary
listener abstract var listener: Listener?


Name Summary
asView open fun asView(): <ERROR CLASS>
Casts this ReaderViewControlsView interface to an actual Android View object.
hideControls abstract fun hideControls(): Unit
Makes the UI controls invisible.
setColorScheme abstract fun setColorScheme(scheme: ColorScheme): Unit
Sets the selected color scheme.
setFont abstract fun setFont(font: FontType): Unit
Sets the selected font option.
setFontSize abstract fun setFontSize(size: Int): Unit
Sets the selected font size.
showControls abstract fun showControls(): Unit
Makes the UI controls visible and requests focus.
tryInflate abstract fun tryInflate(): Boolean
Tries to inflate the view if needed.

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
ReaderViewControlsBar class ReaderViewControlsBar : ConstraintLayout, ReaderViewControlsView
A customizable ReaderView control bar implementing ReaderViewControlsView.