FlutterForegroundPlugin class
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
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>
-