AndroidConfiguration class

Constructors

AndroidConfiguration({required dynamic onStart(ServiceInstance service), bool autoStart = true, bool autoStartOnBoot = true, required bool isForegroundMode, String initialNotificationContent = 'Preparing', String initialNotificationTitle = 'Background Service', String? notificationChannelId, int foregroundServiceNotificationId = 112233})

Properties

autoStart bool
whether service can start automatically after configure
final
autoStartOnBoot bool
wheter service can start automatically on boot
final
foregroundServiceNotificationId int
notification id will be used by foreground service
final
hashCode int
The hash code for this object.
no setterinherited
initialNotificationContent String
notification content that will be shown on status bar when the background service is starting defaults to "Preparing"
final
initialNotificationTitle String
final
isForegroundMode bool
whether service is foreground or background mode
final
notificationChannelId String?
use custom notification channel id you must to create the notification channel before you run configure() method.
final
onStart → dynamic Function(ServiceInstance service)
must be a top level or static method
final
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
toString() String
A string representation of this object.
inherited

Operators

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