本文整理了Java中android.app.Activity.onKeyMultiple()
方法的一些代码示例,展示了Activity.onKeyMultiple()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.onKeyMultiple()
方法的具体详情如下:
包路径:android.app.Activity
类名称:Activity
方法名:onKeyMultiple
暂无
代码示例来源:origin: iqiyi/Neptune
@Override
public boolean onKeyMultiple(int int0, int int1, android.view.KeyEvent keyevent2) {
return mOriginActivity.onKeyMultiple(int0, int1, keyevent2);
}
代码示例来源:origin: com.uphyca/android-junit4-robolectric
/**
* @param keyCode
* @param repeatCount
* @param event
* @return
* @see android.app.Activity#onKeyMultiple(int, int, android.view.KeyEvent)
*/
public boolean onKeyMultiple(int keyCode,
int repeatCount,
KeyEvent event) {
return mActivity.onKeyMultiple(keyCode, repeatCount, event);
}
代码示例来源:origin: shazam/android-aspects
@Override
public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) {
return super.onKeyMultiple(keyCode, repeatCount, event) || dispatcher.dispatchOnKeyMultiple(this, keyCode, repeatCount, event);
}
代码示例来源:origin: ELynx/pokemon-go-xposed-mitm
public boolean onKeyMultiple(int keyCode, int repeatCount, android.view.KeyEvent event) {
if (ScriptLoader.isCalledFromJRuby()) return super.onKeyMultiple(keyCode, repeatCount, event);
if (!JRubyAdapter.isInitialized()) {
Log.i("Method called before JRuby runtime was initialized: RubotoActivity#onKeyMultiple");
return super.onKeyMultiple(keyCode, repeatCount, event);
}
String rubyClassName = scriptInfo.getRubyClassName();
if (rubyClassName == null) return super.onKeyMultiple(keyCode, repeatCount, event);
if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(false).any?{|m| m.to_sym == :onKeyMultiple}")) {
return (Boolean) JRubyAdapter.runRubyMethod(Boolean.class, scriptInfo.getRubyInstance(), "onKeyMultiple", new Object[]{keyCode, repeatCount, event});
} else {
if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(false).any?{|m| m.to_sym == :on_key_multiple}")) {
return (Boolean) JRubyAdapter.runRubyMethod(Boolean.class, scriptInfo.getRubyInstance(), "on_key_multiple", new Object[]{keyCode, repeatCount, event});
} else {
if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(true).any?{|m| m.to_sym == :on_key_multiple}")) {
return (Boolean) JRubyAdapter.runRubyMethod(Boolean.class, scriptInfo.getRubyInstance(), "on_key_multiple", new Object[]{keyCode, repeatCount, event});
} else {
return (Boolean) JRubyAdapter.runRubyMethod(Boolean.class, scriptInfo.getRubyInstance(), "onKeyMultiple", new Object[]{keyCode, repeatCount, event});
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!