mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
Migrate flutter_view example to new plugin API (#9096)
Ref: flutter/engine#3539
This commit is contained in:
parent
002ba64bc1
commit
2993ae8ddb
|
@ -35,9 +35,9 @@ static NSString* const channel = @"increment";
|
|||
if ([segue.identifier isEqualToString:@"FlutterViewControllerSegue"]) {
|
||||
self.flutterViewController = segue.destinationViewController;
|
||||
|
||||
self.messageChannel = [FlutterMessageChannel messageChannelNamed:channel
|
||||
binaryMessenger:self.flutterViewController
|
||||
codec:[FlutterStringCodec sharedInstance]];
|
||||
self.messageChannel = [FlutterMessageChannel messageChannelWithName:channel
|
||||
binaryMessenger:self.flutterViewController
|
||||
codec:[FlutterStringCodec sharedInstance]];
|
||||
|
||||
MainViewController* __weak weakSelf = self;
|
||||
[self.messageChannel setMessageHandler:^(id message, FlutterReplyHandler replyHandler) {
|
||||
|
|
Loading…
Reference in a new issue