MethodChannelFlutterForegroundTask class

An implementation of FlutterForegroundTaskPlatform that uses method channels.

Inheritance

Properties

attachedActivity Future<bool>
no setteroverride
canDrawOverlays Future<bool>
no setteroverride
canScheduleExactAlarms Future<bool>
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isAppOnForeground Future<bool>
no setteroverride
isIgnoringBatteryOptimizations Future<bool>
no setteroverride
isRunningService Future<bool>
no setteroverride
mBGChannel MethodChannel
final
mMDChannel MethodChannel
final
platform ↔ Platform
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkNotificationPermission() Future<NotificationPermission>
override
launchApp([String? route]) → void
override
minimizeApp() → void
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onBackgroundChannel(MethodCall call, TaskHandler handler) Future<void>
openAlarmsAndRemindersSettings() Future<bool>
override
openIgnoreBatteryOptimizationSettings() Future<bool>
override
openSystemAlertWindowSettings() Future<bool>
override
requestIgnoreBatteryOptimization() Future<bool>
override
requestNotificationPermission() Future<NotificationPermission>
override
restartService() Future<void>
override
sendDataToTask(Object data) → void
override
setOnLockScreenVisibility(bool isVisible) → void
override
setTaskHandler(TaskHandler handler) → void
override
startService({required AndroidNotificationOptions androidNotificationOptions, required IOSNotificationOptions iosNotificationOptions, required ForegroundTaskOptions foregroundTaskOptions, int? serviceId, required String notificationTitle, required String notificationText, NotificationIcon? notificationIcon, List<NotificationButton>? notificationButtons, String? notificationInitialRoute, Function? callback}) Future<void>
override
stopService() Future<void>
override
toString() String
A string representation of this object.
inherited
updateService({ForegroundTaskOptions? foregroundTaskOptions, String? notificationTitle, String? notificationText, NotificationIcon? notificationIcon, List<NotificationButton>? notificationButtons, String? notificationInitialRoute, Function? callback}) Future<void>
override
wakeUpScreen() → void
override

Operators

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