ScreenTimeWeb class

A web implementation of the ScreenTimePlatform of the ScreenTime plugin.

Inheritance

Constructors

ScreenTimeWeb.new()
Constructs a ScreenTimeWeb

Properties

hashCode int
The hash code for this object.
no setterinherited
isOnBlockingApps Future<bool>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

appUsageData({DateTime? startTime, DateTime? endTime, UsageInterval usageInterval = UsageInterval.daily, List<String>? packagesName}) Future<List<AppUsage>>
Fetch app usage data from the device.
inherited
blockApps({List<String> packagesName = const <String>[], required Duration duration, required String layoutName, String? notificationTitle, String? notificationText}) Future<bool>
inherited
cancelScheduledBlock(String scheduleId) Future<bool?>
inherited
configureAppMonitoringService({UsageInterval interval = UsageInterval.daily, int lookbackTimeMs = 10000}) Future<bool>
Configures the app monitoring service with the specified interval and lookback time
inherited
getActiveSchedules() Future<Map<String, dynamic>?>
inherited
installedApps({bool ignoreSystemApps = true}) Future<List<InstalledApp>>
inherited
monitoringAppUsage({int startHour = 0, int startMinute = 0, int endHour = 23, int endMinute = 59, UsageInterval usageInterval = UsageInterval.daily, int lookbackTimeMs = 10000, List<String>? packagesName}) Future<MonitoringAppUsage>
Start monitoring app usage with the specified schedule.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
permissionStatus({ScreenTimePermissionType permissionType = ScreenTimePermissionType.appUsage}) Future<ScreenTimePermissionStatus>
inherited
requestPermission({UsageInterval interval = UsageInterval.daily, ScreenTimePermissionType permissionType = ScreenTimePermissionType.appUsage}) Future<bool>
Returns a RequestPermissionModel with the following keys:
inherited
scheduleBlock({required String scheduleId, required List<String> packagesName, required DateTime startTime, required Duration duration, bool recurring = false, List<int> daysOfWeek = const []}) Future<bool?>
inherited
streamAppUsage({UsageInterval usageInterval = UsageInterval.daily, int lookbackTimeMs = 10000}) Stream<Map<String, dynamic>>
Stream app usage data in real-time.
inherited
toString() String
A string representation of this object.
inherited
unblockApps({List<String> packagesName = const <String>[]}) Future<bool>
inherited

Operators

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

Static Methods

registerWith(Registrar registrar) → void