MethodChannelAppLimiter class
An implementation of AppLimiterPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- AppLimiterPlatform
- MethodChannelAppLimiter
Constructors
Properties
- eventChannel → EventChannel
-
final
- 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
-
blockAllAndroidApps(
) → Future< void> -
Blocks every Android app with a launcher icon, except essential ones.
override
-
blockAndroidApp(
{required String packageName}) → Future< void> -
Blocks a specific Android app package.
override
-
blockAndroidApps(
) → Future< void> -
Blocks every Android app with a launcher icon, except essential ones.
override
-
blockAndUnblockIOSApp(
) → Future< void> -
Handles blocking and unblocking operations for iOS apps.
override
-
blockIOSApps(
) → Future< void> -
Shields the apps and categories previously chosen in the iOS picker.
override
-
configureIosSchedule(
Map< String, dynamic> schedule) → Future<void> -
Updates iOS schedule without reopening app/category picker.
override
-
getBlockedAndroidApps(
) → Future< List< String> > -
Returns the package names that are individually blocked on Android.
override
-
getEventStream(
) → Stream< Map< String, dynamic> > -
Event stream for permission, schedule, and selection state updates.
override
-
getIOSAuthorizationStatus(
) → Future< String> -
Returns the iOS Screen Time authorization status.
override
-
getPlatformCapabilities(
) → Future< Map< String, dynamic> > -
Returns platform capabilities and currently active plugin features.
override
-
getPlatformVersion(
) → Future< String?> -
Gets the platform version.
override
-
isAndroidBlockingActive(
) → Future< bool> -
Returns true if Android blocking is currently active.
override
-
isAndroidEnterpriseModeEnabled(
) → Future< bool> -
Returns true if Android enterprise mode is currently active.
override
-
isAndroidPermissionAllowed(
) → Future< bool> -
Checks Android permission status through the native implementation
override
-
isIOSAppsBlocked(
) → Future< bool> -
Returns true if any iOS app or category is currently shielded.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestAndroidPermission(
) → Future< void> -
Requests Android permissions through the native implementation
override
-
requestIosPermission(
) → Future< bool> -
Requests iOS permissions through the native implementation
override
-
selectAndConfigureIosAppRestrictions(
{Map< String, dynamic> ? schedule}) → Future<void> -
Opens iOS app/category picker and applies current restrictions.
override
-
setAndroidEnterpriseModeEnabled(
{required bool enabled}) → Future< void> -
Enables or disables optional Android enterprise mode.
override
-
showIOSAppPicker(
) → Future< bool> -
Shows the iOS app/category picker without applying any restriction.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
unblockAllAndroidApps(
) → Future< void> -
Removes every Android block and stops the blocking service.
override
-
unblockAndroidApp(
{required String packageName}) → Future< void> -
Unblocks a specific Android app package.
override
-
unblockAndroidApps(
) → Future< void> -
Removes every Android block.
override
-
unblockIOSApps(
) → Future< void> -
Removes every shield applied by this plugin on iOS.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited