AndroidConfiguration class

Constructors

AndroidConfiguration({required dynamic onStart(ServiceInstance service), bool autoStart = true, bool autoStartOnBoot = true, required bool isForegroundMode, required String currentDay, required String currentJalaliDate, required String currentMiladiDate, required String currentHijriDate, 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
currentDay String
notification content that will be shown on status bar when the background service is starting defaults to "Preparing"
final
currentHijriDate String
final
currentJalaliDate String
final
currentMiladiDate String
final
foregroundServiceNotificationId int
notification id will be used by foreground service
final
hashCode int
The hash code for this object.
no setterinherited
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