FlutterForegroundTaskPlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- FlutterForegroundTaskPlatform
- Implementers
Constructors
- FlutterForegroundTaskPlatform()
- Constructs a FlutterForegroundTaskPlatform.
Properties
-
canDrawOverlays
→ Future<
bool> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isAppOnForeground
→ Future<
bool> -
no setter
-
isIgnoringBatteryOptimizations
→ Future<
bool> -
no setter
-
isRunningService
→ Future<
bool> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
launchApp(
[String? route]) → void -
minimizeApp(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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.
getter/setter pair