screen_state 0.0.4 copy "screen_state: ^0.0.4" to clipboard
screen_state: ^0.0.4 copied to clipboard

outdated

A plugin for reporting screen events while the flutter application is running in background. Works for Android only.

screen_state #

pub package

A Flutter plugin for tracking the screen state.

Install #

Add screen_state as a dependency in pubspec.yaml. For help on adding as a dependency, view the documentation.

Example Usage #

Instantiate a Screen object (no parameters needed):

Screen screen = new Screen();

Screen State events can be streamed by calling the listen() method on a Screen object, using an onData method for handling incoming events:

screen.listen(onData);

An example of the onData() method is:

onData(ScreenStateEvent event) {
    print(event);
}

The subscription can be cancelled again, by invoking the cancel method: screen.cancel();

36
likes
0
pub points
91%
popularity

Publisher

verified publishercachet.dk

A plugin for reporting screen events while the flutter application is running in background. Works for Android only.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on screen_state