|
|
@@ -11,9 +11,13 @@ class MethodChannelMobileUseStatistics extends MobileUseStatisticsPlatform {
|
|
|
final methodChannel = const MethodChannel('mobile_use_statistics');
|
|
|
|
|
|
@override
|
|
|
- Future<List<Event>?> getLockScreenStatistics() async {
|
|
|
+ Future<List<Event>?> getLockScreenStatistics({
|
|
|
+ required int startTime,
|
|
|
+ required int endTime,
|
|
|
+ }) async {
|
|
|
final version = await methodChannel.invokeMethod<List<Event>?>(
|
|
|
'getLockScreenStatistics',
|
|
|
+ <String, dynamic>{'startTime': startTime, 'endTime': endTime},
|
|
|
);
|
|
|
return version;
|
|
|
}
|