android-components / mozilla.components.lib.state / Action

Action

interface Action (source)

Generic interface for actions to be dispatched on a Store.

Actions are used to send data from the application to a Store. The Store will use the Action to derive a new State. Actions should describe what happened, while Reducers will describe how the state changes.

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
BrowserAction sealed class BrowserAction : Action
Action implementation related to BrowserState.
CustomTabsAction sealed class CustomTabsAction : Action