FlutterForegroundTaskPlatform class Null safety

Inheritance
  • Object
  • PlatformInterface
  • FlutterForegroundTaskPlatform
Implementers

Constructors

FlutterForegroundTaskPlatform()
Constructs a FlutterForegroundTaskPlatform.

Properties

canDrawOverlays Future<bool>
read-only
hashCode int
The hash code for this object.
read-onlyinherited
isAppOnForeground Future<bool>
read-only
isIgnoringBatteryOptimizations Future<bool>
read-only
isRunningService Future<bool>
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

launchApp([String? route]) → void
minimizeApp() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
openIgnoreBatteryOptimizationSettings() Future<bool>
openSystemAlertWindowSettings({bool forceOpen = false}) Future<bool>
requestIgnoreBatteryOptimization() Future<bool>
restartService() Future<bool>
setOnLockScreenVisibility(bool isVisible) → void
startService({required AndroidNotificationOptions androidNotificationOptions, required IOSNotificationOptions iosNotificationOptions, required ForegroundTaskOptions foregroundTaskOptions, required String notificationTitle, required String notificationText, Function? callback}) Future<bool>
stopService() Future<bool>
toString() String
A string representation of this object.
inherited
updateService({String? notificationTitle, String? notificationText, Function? callback}) Future<bool>
wakeUpScreen() → void

Operators

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

Static Properties

instance FlutterForegroundTaskPlatform
The default instance of FlutterForegroundTaskPlatform to use.
read / write