52 new MethodChannel.MethodCallHandler() {
54 public void onMethodCall(@NonNull
MethodCall call, @NonNull MethodChannel.Result
result) {
55 if (processTextMethodHandler ==
null) {
58 String method = call.method;
59 Object
args = call.arguments;
61 case METHOD_QUERY_TEXT_ACTIONS:
65 }
catch (IllegalStateException exception) {
66 result.error(
"error", exception.getMessage(),
null);
69 case METHOD_PROCESS_TEXT_ACTION:
71 final ArrayList<Object> argumentList = (ArrayList<Object>)
args;
72 String
id = (String) (argumentList.get(0));
73 String
text = (String) (argumentList.get(1));
74 boolean readOnly = (boolean) (argumentList.get(2));
76 }
catch (IllegalStateException exception) {
77 result.error(
"error", exception.getMessage(),
null);