iOS交互
怎么通过flutter_boost与原生iOS交互 传递信息
请使用Flutter 自带Method Channel
请使用Flutter 自带Method Channel
我试了试总是报错,能给贴出来实例代码 万分感谢
请使用Flutter 自带Method Channel 能给出flutter_boost于iOS交互的实例代码吗 ,谢谢大神
[FlutterBoostPlugin.sharedInstance startFlutterWithPlatform:router onStart:^(FlutterViewController *vc) { FlutterMethodChannel *someChannel = [FlutterMethodChannel methodChannelWithName:@"com.alibb.sfs/ffse" binaryMessenger:vc]; [someChannel setMethodCallHandler:^(FlutterMethodCall * _Nonnull call, FlutterResult _Nonnull result) { if ([call.method isEqualToString:@"response"]) { NSLog(@"=======%@",call.arguments);
}else {
// result(FlutterMethodNotImplemented);
}
}];
}];