◆ primaryResponderTest()
void io.flutter.embedding.android.KeyChannelResponderTest.primaryResponderTest |
( |
| ) |
|
|
inline |
Definition at line 36 of file KeyChannelResponderTest.java.
36 {
37 final int[] completionCallbackInvocationCounter = {0};
38
39 doAnswer(
40 invocation -> {
41 ((EventResponseHandler) invocation.getArgument(2)).onFrameworkResponse(true);
42 return null;
43 })
45 .sendFlutterKeyEvent(
47
48 final KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, 65);
50 keyEvent,
51 (canHandleEvent) -> {
52 completionCallbackInvocationCounter[0]++;
53 });
54 assertEquals(completionCallbackInvocationCounter[0], 1);
55 }
KeyEventChannel keyEventChannel
KeyChannelResponder channelResponder
void handleEvent( @NonNull KeyEvent keyEvent, @NonNull OnKeyEventHandledCallback onKeyEventHandledCallback)
SIT bool any(const Vec< 1, T > &x)
◆ setUp()
void io.flutter.embedding.android.KeyChannelResponderTest.setUp |
( |
| ) |
|
|
inline |
◆ channelResponder
◆ keyEventChannel
KeyEventChannel io.flutter.embedding.android.KeyChannelResponderTest.keyEventChannel |
|
package |
The documentation for this class was generated from the following file: