FlutterBackground class
Constructors
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 Properties
-
hasPermissions
→ Future<
bool> -
Indicates whether or not the user has given the necessary permissions in order to run in the background.
no setter
- isBackgroundExecutionEnabled → bool
-
Indicates whether background execution is currently enabled.
no setter
Static Methods
-
disableBackgroundExecution(
) → Future< bool> - Disables the execution of the flutter app in the background. You must to call FlutterBackground.initialize() before calling this function.
-
enableBackgroundExecution(
) → Future< bool> - Enables the execution of the flutter app in the background. You must to call FlutterBackground.initialize() before calling this function.
-
initialize(
{FlutterBackgroundAndroidConfig androidConfig = const FlutterBackgroundAndroidConfig()}) → Future< bool> - Initializes the plugin. May request the necessary permissions from the user in order to run in the background.