You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create a custom plugin that can detect a specific keyDown and inform listeners about this activity. Following code works in MainActivity.java and BridgeActivity.java, sadly it does not work anywhere else.
@OverridepublicbooleanonKeyDown(intkeyCode, KeyEventevent) {
if (keyCode == KeyEvent.KEYCODE_MENU) {
// When the user presses menu, trigger something.returntrue;
}
returnfalse;
}
I am not an expert in Java, can someone help me to make this work in custom plugin please.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to create a custom plugin that can detect a specific
keyDown
and inform listeners about this activity. Following code works inMainActivity.java
andBridgeActivity.java
, sadly it does not work anywhere else.I am not an expert in Java, can someone help me to make this work in custom plugin please.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions