setupMethodCallHandler method

void setupMethodCallHandler()

设置方法调用处理器

Implementation

void setupMethodCallHandler() {
  methodChannel.setMethodCallHandler((call) async {
    safeLog('🔵 [MethodChannel] 收到方法调用: ${call.method}');
    safeLog('🔵 [MethodChannel] 参数: ${call.arguments}');
    // 只处理请求-响应式的方法调用,事件处理现在通过EventChannel实现
    return null;
  });
  safeLog('🔵 [MethodChannel] 方法调用处理器已设置');
}