BackgroundService class

Background Service Module for persistent services and tasks.

Constructors

BackgroundService(MethodChannel _channel)

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
registerBackgroundTask({required String taskId, required bool isTypesPeriodic, required int intervalMillis}) → Future<void>
Registers a background task.
startPersistentService({required String title, required String content, bool autoRestart = true, String? icon}) → Future<void>
Starts a persistent foreground service.
stopPersistentService() → Future<void>
Stops the persistent foreground service.
toString() → String
A string representation of this object.
inherited

Operators

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