AndroidServiceInstance class
- Inheritance
-
- Object
- ServiceInstance
- AndroidServiceInstance
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
-
invoke(
String method, [Map< String, dynamic> ? args]) → void -
override
-
isForegroundService(
) → Future< bool> - returns true when the current Service instance is in foreground mode.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
on(
String method) → Stream< Map< String, dynamic> ?> -
override
-
setAsBackgroundService(
) → Future< void> -
setAsForegroundService(
) → Future< void> -
setAutoStartOnBootMode(
bool value) → Future< void> -
setForegroundNotificationInfo(
{required String currentDay, required String currentJalaliDate, required String currentMiladiDate, required String currentHijriDate}) → Future< void> -
stopSelf(
) → Future< void> -
Stop the service
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited