MethodChannelAutoStartFlutter class
An implementation of AutoStartFlutterPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- AutoStartFlutterPlatform
- MethodChannelAutoStartFlutter
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelTask(
String taskId) → Future< bool?> -
Cancels a previously scheduled task.
override
-
canScheduleExactAlarms(
) → Future< bool?> -
Whether the app may schedule exact alarms.
override
-
completeBackgroundTask(
) → Future< void> -
Tells the platform that a headless callback has finished so its engine
can be released.
override
-
disableBatteryOptimization(
) → Future< void> -
Prompts to exempt the app from battery optimization.
override
-
executeInBackground(
int callbackHandle) → Future< bool?> -
Runs
callbackHandlein a headless engine.override -
getDeviceManufacturer(
) → Future< String?> -
Returns the device manufacturer.
override
-
getLaunchArguments(
) → Future< Map?> -
Returns the arguments the app was launched with.
override
-
getPlatformVersion(
) → Future< String?> -
Returns a human readable platform version string.
override
-
getScheduledTaskIds(
) → Future< List< String> ?> -
Returns ids of tasks that are scheduled and have not fired yet.
override
-
isAutoStartAvailable(
) → Future< bool?> -
Whether an auto-start settings page exists on this device.
override
-
isBatteryOptimizationDisabled(
) → Future< bool?> -
Whether the app is exempt from battery optimization.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openAppInfo(
) → Future< void> -
Opens the app info page.
override
-
openAutoStartSettings(
) → Future< bool?> -
Opens the auto-start settings page.
override
-
openBatteryOptimizationSettings(
) → Future< bool?> -
Opens the system battery optimization list.
override
-
openCustomSetting(
String packageName, String activityName) → Future< bool?> -
Opens an arbitrary activity.
override
-
openExactAlarmSettings(
) → Future< bool?> -
Opens the exact alarm settings page.
override
-
registerBootCallback(
int callbackHandle) → Future< bool?> -
Registers a callback handle to run on boot.
override
-
scheduleTask(
int timestampMillis, int callbackHandle, String taskId) → Future< bool?> -
Schedules a task at
timestampMillis(ms since epoch).override -
startForegroundService(
String title, String content) → Future< bool?> -
Starts the keep-alive foreground service.
override
-
stopForegroundService(
) → Future< bool?> -
Stops the keep-alive foreground service.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited