获取通话记录

This commit is contained in:
GYJ
2024-11-23 15:22:23 +08:00
parent 87c41341fd
commit a82e726d5f
21 changed files with 430 additions and 6 deletions

View File

@@ -0,0 +1,16 @@
import 'package:flutter/services.dart';
import '../print/print.dart';
import 'names.dart';
class ChannelManager {
static Future<void> getCallLog(String param) async {
MethodChannel channel = MethodChannel(getChannelName(kGetCallLog));
try {
final result = await channel.invokeMethod(kGetCallLog, param);
yjPrint(result);
} on PlatformException catch (e) {
yjPrint('$kGetCallLog 发生异常:$e');
}
}
}