AppOpenLifecycleCoordinator class
Coordinates app-open handling with the Mobile Ads plugin's app-state stream. The injected stream is intended for deterministic unit tests.
Constructors
-
AppOpenLifecycleCoordinator({required void onForeground(), Stream<
AppState> ? appStateStream})
Properties
-
appStateStream
→ Stream<
AppState> ? -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onForeground → void Function()
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> - Stops the subscription and, for the default stream, the plugin listener.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
) → Future< void> - Starts listening once. The plugin listener is started before subscribing to its stream so the first state transition is not missed.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited