UiBackgroundTask class

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

appLifeCycleUpdate(AppLifecycleState appLifecycleState) → void
beginBackgroundTask() Future<int>
dispose() → dynamic
endBackgroundTask(int taskId) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance UiBackgroundTask
no setter

Constants

kAppBackgroundTimerDuration → const Duration
Duration after which all the tasks will be ended when the app is in background. Keeping it a bit less than 30 seconds, i.e. the time app gets when in background.
kTaskCompletionTimerDuration → const Duration
Duration for which each task is going to run at max. Keeping it a bit less than 30 seconds, i.e. the time before which the background tasks should end. The expiration handler of the task is only called when teh app is in background for more than 30 seconds