@@ -975,46 +975,69 @@ - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
975
975
#pragma mark - FlutterViewEngineDelegate
976
976
977
977
- (void )flutterTextInputView : (FlutterTextInputView*)textInputView showToolbar : (int )client {
978
- [_scribbleChannel.get () invokeMethod: @" Scribble.showToolbar" arguments: @[ @(client) ]];
978
+ // TODO(justinmc): Switch from the TextInputClient to Scribble channel when
979
+ // the framework has finished transitioning to the Scribble channel.
980
+ // https://github.com/flutter/flutter/pull/115296
981
+ [_textInputChannel.get () invokeMethod: @" TextInputClient.showToolbar" arguments: @[ @(client) ]];
979
982
}
980
983
981
984
- (void )flutterTextInputPlugin : (FlutterTextInputPlugin*)textInputPlugin
982
985
focusElement : (UIScribbleElementIdentifier)elementIdentifier
983
986
atPoint : (CGPoint )referencePoint
984
987
result : (FlutterResult)callback {
985
- [_scribbleChannel.get ()
986
- invokeMethod: @" Scribble.focusElement"
988
+ // TODO(justinmc): Switch from the TextInputClient to Scribble channel when
989
+ // the framework has finished transitioning to the Scribble channel.
990
+ // https://github.com/flutter/flutter/pull/115296
991
+ [_textInputChannel.get ()
992
+ invokeMethod: @" TextInputClient.focusElement"
987
993
arguments: @[ elementIdentifier, @(referencePoint.x), @(referencePoint.y) ]
988
994
result: callback];
989
995
}
990
996
991
997
- (void )flutterTextInputPlugin : (FlutterTextInputPlugin*)textInputPlugin
992
998
requestElementsInRect : (CGRect )rect
993
999
result : (FlutterResult)callback {
994
- [_scribbleChannel.get ()
995
- invokeMethod: @" Scribble.requestElementsInRect"
1000
+ // TODO(justinmc): Switch from the TextInputClient to Scribble channel when
1001
+ // the framework has finished transitioning to the Scribble channel.
1002
+ // https://github.com/flutter/flutter/pull/115296
1003
+ [_textInputChannel.get ()
1004
+ invokeMethod: @" TextInputClient.requestElementsInRect"
996
1005
arguments: @[ @(rect.origin.x), @(rect.origin.y), @(rect.size.width), @(rect.size.height) ]
997
1006
result: callback];
998
1007
}
999
1008
1000
1009
- (void )flutterTextInputViewScribbleInteractionBegan : (FlutterTextInputView*)textInputView {
1001
- [_scribbleChannel.get () invokeMethod: @" Scribble.scribbleInteractionBegan" arguments: nil ];
1010
+ // TODO(justinmc): Switch from the TextInputClient to Scribble channel when
1011
+ // the framework has finished transitioning to the Scribble channel.
1012
+ // https://github.com/flutter/flutter/pull/115296
1013
+ [_textInputChannel.get () invokeMethod: @" TextInputClient.scribbleInteractionBegan" arguments: nil ];
1002
1014
}
1003
1015
1004
1016
- (void )flutterTextInputViewScribbleInteractionFinished : (FlutterTextInputView*)textInputView {
1005
- [_scribbleChannel.get () invokeMethod: @" Scribble.scribbleInteractionFinished" arguments: nil ];
1017
+ // TODO(justinmc): Switch from the TextInputClient to Scribble channel when
1018
+ // the framework has finished transitioning to the Scribble channel.
1019
+ // https://github.com/flutter/flutter/pull/115296
1020
+ [_textInputChannel.get () invokeMethod: @" TextInputClient.scribbleInteractionFinished"
1021
+ arguments: nil ];
1006
1022
}
1007
1023
1008
1024
- (void )flutterTextInputView : (FlutterTextInputView*)textInputView
1009
1025
insertTextPlaceholderWithSize : (CGSize )size
1010
1026
withClient : (int )client {
1011
- [_scribbleChannel.get () invokeMethod: @" Scribble.insertTextPlaceholder"
1012
- arguments: @[ @(client), @(size.width), @(size.height) ]];
1027
+ // TODO(justinmc): Switch from the TextInputClient to Scribble channel when
1028
+ // the framework has finished transitioning to the Scribble channel.
1029
+ // https://github.com/flutter/flutter/pull/115296
1030
+ [_textInputChannel.get () invokeMethod: @" TextInputClient.insertTextPlaceholder"
1031
+ arguments: @[ @(client), @(size.width), @(size.height) ]];
1013
1032
}
1014
1033
1015
1034
- (void )flutterTextInputView : (FlutterTextInputView*)textInputView
1016
1035
removeTextPlaceholder : (int )client {
1017
- [_scribbleChannel.get () invokeMethod: @" Scribble.removeTextPlaceholder" arguments: @[ @(client) ]];
1036
+ // TODO(justinmc): Switch from the TextInputClient to Scribble channel when
1037
+ // the framework has finished transitioning to the Scribble channel.
1038
+ // https://github.com/flutter/flutter/pull/115296
1039
+ [_textInputChannel.get () invokeMethod: @" TextInputClient.removeTextPlaceholder"
1040
+ arguments: @[ @(client) ]];
1018
1041
}
1019
1042
1020
1043
- (void )flutterTextInputViewDidResignFirstResponder : (FlutterTextInputView*)textInputView {
0 commit comments