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

ReaderViewControlsBar

class ReaderViewControlsBar : ConstraintLayout, ReaderViewControlsView (source)

A customizable ReaderView control bar implementing ReaderViewControlsView.

Constructors

Name Summary
<init> ReaderViewControlsBar(context: <ERROR CLASS>, attrs: <ERROR CLASS>? = null, defStyleAttr: Int = 0)
A customizable ReaderView control bar implementing ReaderViewControlsView.

Properties

Name Summary
listener var listener: Listener?

Functions

Name Summary
hideControls fun hideControls(): Unit
Updates visibility to View.GONE of the UI controls.
onFocusChanged fun onFocusChanged(gainFocus: Boolean, direction: Int, previouslyFocusedRect: <ERROR CLASS>?): Unit
setColorScheme fun setColorScheme(scheme: ColorScheme): Unit
Sets the color scheme of the current and future ReaderView sessions.
setFont fun setFont(font: FontType): Unit
Sets the font type of the current and future ReaderView sessions.
setFontSize fun setFontSize(size: Int): Unit
Sets the font size of the current and future ReaderView sessions.
showControls fun showControls(): Unit
Updates visibility to View.VISIBLE and requests focus for the UI controls.

Inherited Functions

Name Summary
asView open fun asView(): <ERROR CLASS>
Casts this ReaderViewControlsView 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.