android-components / mozilla.components.browser.state.state / ReaderState

ReaderState

data class ReaderState (source)

Value type that represents the state of reader mode/view.

Constructors

Name Summary
<init> ReaderState(readerable: Boolean = false, active: Boolean = false)
Value type that represents the state of reader mode/view.

Properties

Name Summary
active val active: Boolean
whether or not reader view is active.
readerable val readerable: Boolean
whether or not the current page can be transformed to be displayed in a reader view.

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.