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

events → Stream<AppLimiterEvent>
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

androidBlockAllApps({List<String> except = const [], Duration? duration}) → Future<void>
androidBlockApps(List<String> packageNames, {Duration? duration}) → Future<void>
androidGetInstalledApps({bool includeIcons = false, bool includeSystemApps = true, int iconSize = 96}) → Future<List<InstalledApp>>
androidGetSchedules() → Future<List<BlockSchedule>>
androidIsEnterpriseCapable() → Future<bool>
androidIsEnterpriseModeEnabled() → Future<bool>
androidRemoveSchedule(String id) → Future<void>
androidSetBlockScreen(BlockScreenConfig config) → Future<void>
androidSetEnterpriseModeEnabled(bool enabled) → Future<void>
androidSetNotification({String? title, String? text}) → Future<void>
androidSetSchedule(BlockSchedule schedule) → Future<void>
androidUnblockApps(List<String> packageNames) → Future<void>
getBlockingState() → Future<BlockingState>
getCapabilities() → Future<Map<String, dynamic>>
Raw capability map, kept for the deprecated getPlatformCapabilities().
getPermissionStatus() → Future<PermissionStatus>
getPlatformVersion() → Future<String?>
iosBlockSelectedApps({Duration? duration}) → Future<void>
iosConfigureSchedule(Map<String, dynamic> schedule) → Future<void>
iosGetExtensionStatus() → Future<IosExtensionStatus>
iosGetSchedules() → Future<List<IosBlockSchedule>>
iosRemoveSchedule(String id) → Future<void>
iosSetSchedule(IosBlockSchedule schedule) → Future<void>
iosSetShield(IosShieldConfig config) → Future<void>
iosShowAppPicker() → Future<bool>
iosShowAppPickerAndBlock({Map<String, dynamic>? schedule}) → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermission([AppPermission? permission]) → Future<PermissionStatus>
Requests permission, or the next missing required permission when null.
toString() → String
A string representation of this object.
inherited
unblockAll() → Future<void>

Operators

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

Static Properties

instance ↔ AppLimiterPlatform
The default instance of AppLimiterPlatform to use.
getter/setter pair