AFSWAN class

Static helper class that contains various Android related constants and provides methods to start and stop a foreground service.

AFSWAN is an abbreviation for android_foreground_service_with_awesome_notifications.

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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

startForeground({required PushNotification notification, int startType = startSticky, int? foregroundServiceType}) Future<void>
Starts the foreground service with the given notification, whichs content must not be null.
stopForeground() Future<void>
Stops a foreground service.