Files
cashier_reserve_app/lib/common/channel/channel_manager.dart
2024-11-23 15:22:23 +08:00

16 lines
442 B
Dart

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');
}
}
}