FlutterForegroundPlugin class

Constructors

FlutterForegroundPlugin()

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 Properties

onStartedMethod Function?
getter/setter pair
onStoppedMethod Function?
getter/setter pair

Static Methods

setServiceMethod(Function serviceMethod) Future<void>
setServiceMethodInterval({int seconds = 5}) Future<void>
startForegroundService({bool holdWakeLock = false, Function? onStarted, Function? onStopped, required String iconName, int color = 0, required String title, String content = "", String subtext = "", bool chronometer = false, bool stopAction = false, String? stopIcon, String stopText = 'Close'}) Future<void>
startForegroundService
stopForegroundService() Future<void>