5package io.flutter.embedding.engine.systemchannels;
7import androidx.annotation.NonNull;
8import androidx.annotation.Nullable;
9import io.flutter.plugin.common.BinaryMessenger;
10import io.flutter.plugin.common.MethodCall;
11import io.flutter.plugin.common.MethodChannel;
12import io.flutter.plugin.common.StandardMethodCodec;
13import java.util.HashMap;
28 Map<Long, Long> pressedState =
new HashMap<>();
32 if (keyboardMethodHandler ==
null) {
35 result.success(pressedState);
37 switch (
call.method) {
38 case "getKeyboardState":
41 }
catch (IllegalStateException exception) {
42 result.error(
"error", exception.getMessage(),
null);
44 result.success(pressedState);
63 this.keyboardMethodHandler = keyboardMethodHandler;
KeyboardChannel(@NonNull BinaryMessenger messenger)
final MethodChannel channel
final MethodChannel.MethodCallHandler parsingMethodHandler
void setKeyboardMethodHandler(@Nullable KeyboardMethodHandler keyboardMethodHandler)
void setMethodCallHandler(final @Nullable MethodCallHandler handler)
static final StandardMethodCodec INSTANCE
Map< Long, Long > getKeyboardState()