AppLimiterPlatform class abstract
The interface that implementations of app_limiter must implement.
Platform implementations should extend this class rather than implement it as app_limiter
does not consider newly added methods to be breaking changes. Extending this class
(using extends) ensures that the subclass will get the default implementation, while
platform implementations that implements this interface will be broken by newly added
AppLimiterPlatform methods.
- Inheritance
-
- Object
- PlatformInterface
- AppLimiterPlatform
- Implementers
Constructors
- AppLimiterPlatform()
- Constructs a AppLimiterPlatform.
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
-
blockAndroidApps(
) → Future< void> - Blocks specified Android apps.
-
blockAndUnblockIOSApp(
) → Future< void> - Handles blocking and unblocking operations for iOS apps.
-
getPlatformVersion(
) → Future< String?> - Gets the platform version.
-
isAndroidPermissionAllowed(
) → Future< bool> - Checks if required Android permissions are granted.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestAndroidPermission(
) → Future< void> - Requests necessary Android permissions.
-
requestIosPermission(
) → Future< bool> - Requests necessary permissions on iOS.
-
toString(
) → String -
A string representation of this object.
inherited
-
unblockAndroidApps(
) → Future< void> - Unblocks previously blocked Android apps.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ AppLimiterPlatform
-
The default instance of AppLimiterPlatform to use.
getter/setter pair