BackgroundTaskManager class

Implemented types

Properties

cache BackgroundTaskCache
final
hashCode int
The hash code for this object.
no setterinherited
initCompletable Completer<bool>
getter/setter pair
isInitialized bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
taskStreamMap Map<String, BehaviorSubject<BackgroundEvent>>
final
taskToType Map<String, String>
getter/setter pair

Methods

dispose() → void
override
enqueueUniqueTask(BackgroundTask taskCallback, String uniqueWorkName, {PlatformArguments? args, String? tag}) Future<BackgroundTaskInfo>
override
executeTask(BackgroundTask taskCallback, {PlatformArguments? args, String? tag}) Future<BackgroundTaskInfo>
override
getEventStreamForTag(String tag) Stream<BackgroundEvent>
override
getEventStreamForTask(String id) Stream<BackgroundEvent>
override
getTasksWithStatus({required List<BtmTaskStatus> status}) Future<List<BackgroundTaskInfo>>
override
getTasksWithTag(String tag) Future<List<BackgroundTaskInfo>>
override
getTasksWithUniqueWorkName(String uniqueWorkName) Future<List<BackgroundTaskInfo>>
override
init() Future<void>
override
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

singleton BackgroundTaskManager
no setter

Static Methods

postEvent({required Map<String, BackgroundDataField<Object>> args}) → dynamic