Autostarter class

Constructors

Autostarter()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

checkAutoStartState() Future<bool?>
Check the autostart Permission State on the device Only applicable for MIUI devices Returns 'true' is AutoStart Permission is enabled, 'false' otherwise
getAutoStartPermission({bool open = false, bool newTask = false}) Future<void>
open : If true, it will attempt to open the activity, otherwise it will just check its existence
getWhitelistedPackages() Future<List<String>>
Retrieves the list of whitelisted packages on the device Only applicable for MIUI devices Returns a list of package names that are whitelisted for MIUI
isAutoStartPermissionAvailable() Future<bool?>
Checks if the autostart permission feature is available on the device Returns 'true' if the Autostart permission feature is available , 'false' otherwise.