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

ReaderViewControlsView

interface ReaderViewControlsView (source)

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

Types

Name Summary
Listener interface Listener

Properties

Name Summary
listener abstract var listener: Listener?

Functions

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.

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.

Inheritors

Name Summary
ReaderViewControlsBar class ReaderViewControlsBar : ConstraintLayout, ReaderViewControlsView
A customizable ReaderView control bar implementing ReaderViewControlsView.