MethodChannelFlutterForegroundTask class Null safety

An implementation of FlutterForegroundTaskPlatform that uses method channels.

Inheritance

Constructors

MethodChannelFlutterForegroundTask()

Properties

canDrawOverlays Future<bool>
read-onlyoverride
hashCode int
The hash code for this object.
read-onlyinherited
isAppOnForeground Future<bool>
read-onlyoverride
isIgnoringBatteryOptimizations Future<bool>
read-onlyoverride
isRunningService Future<bool>
read-onlyoverride
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

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

Operators

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