BloomLifecycleObserver mixin

Mixin for classes that observe Flutter application lifecycle transitions.

Implement any of the lifecycle hooks to handle backgrounding, pausing, or resuming.

Example:

class SyncManager with BloomLifecycleObserver {
  @override
  void onAppResumed() {
    // Refresh pending data when returning to foreground
  }
}

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAppDetached() → void
Called when the application engine is detached from the host platform.
onAppHidden() → void
Called when all application views are hidden.
onAppInactive() → void
Called when the application enters an inactive state (e.g. phone call or system dialog).
onAppPaused() → void
Called when the application is backgrounded and paused.
onAppResumed() → void
Called when the application transitions to the foreground resumed state.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited