MethodChannelAppLimiter class
An implementation of AppLimiterPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- AppLimiterPlatform
- MethodChannelAppLimiter
Constructors
Properties
- eventChannel → EventChannel
-
final
-
events
→ Stream<
AppLimiterEvent> -
no setteroverride
- 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
-
androidBlockAllApps(
{List< String> except = const [], Duration? duration}) → Future<void> -
override
-
androidBlockApps(
List< String> packageNames, {Duration? duration}) → Future<void> -
override
-
androidGetInstalledApps(
{bool includeIcons = false, bool includeSystemApps = true, int iconSize = 96}) → Future< List< InstalledApp> > -
override
-
androidGetSchedules(
) → Future< List< BlockSchedule> > -
override
-
androidIsEnterpriseCapable(
) → Future< bool> -
override
-
androidIsEnterpriseModeEnabled(
) → Future< bool> -
override
-
androidRemoveSchedule(
String id) → Future< void> -
override
-
androidSetBlockScreen(
BlockScreenConfig config) → Future< void> -
override
-
androidSetEnterpriseModeEnabled(
bool enabled) → Future< void> -
override
-
androidSetNotification(
{String? title, String? text}) → Future< void> -
override
-
androidSetSchedule(
BlockSchedule schedule) → Future< void> -
override
-
androidUnblockApps(
List< String> packageNames) → Future<void> -
override
-
getBlockingState(
) → Future< BlockingState> -
override
-
getCapabilities(
) → Future< Map< String, dynamic> > -
Raw capability map, kept for the deprecated
getPlatformCapabilities().override -
getPermissionStatus(
) → Future< PermissionStatus> -
override
-
getPlatformVersion(
) → Future< String?> -
override
-
iosBlockSelectedApps(
{Duration? duration}) → Future< void> -
override
-
iosConfigureSchedule(
Map< String, dynamic> schedule) → Future<void> -
override
-
iosGetExtensionStatus(
) → Future< IosExtensionStatus> -
override
-
iosGetSchedules(
) → Future< List< IosBlockSchedule> > -
override
-
iosRemoveSchedule(
String id) → Future< void> -
override
-
iosSetSchedule(
IosBlockSchedule schedule) → Future< void> -
override
-
iosSetShield(
IosShieldConfig config) → Future< void> -
override
-
iosShowAppPicker(
) → Future< bool> -
override
-
iosShowAppPickerAndBlock(
{Map< String, dynamic> ? schedule}) → Future<void> -
override
-
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.override -
toString(
) → String -
A string representation of this object.
inherited
-
unblockAll(
) → Future< void> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited