android.app.Activity.onGenericMotionEvent()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(526)

本文整理了Java中android.app.Activity.onGenericMotionEvent()方法的一些代码示例,展示了Activity.onGenericMotionEvent()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.onGenericMotionEvent()方法的具体详情如下:
包路径:android.app.Activity
类名称:Activity
方法名:onGenericMotionEvent

Activity.onGenericMotionEvent介绍

暂无

代码示例

代码示例来源:origin: iqiyi/Neptune

@Override
public boolean onGenericMotionEvent(android.view.MotionEvent motionevent0) {
  return mOriginActivity.onGenericMotionEvent(motionevent0);
}

代码示例来源:origin: fengdai/FragmentMaster

@Override
  public boolean dispatchGenericMotionEvent(MotionEvent event) {
    return mActivity.onGenericMotionEvent(event);
  }
}

代码示例来源:origin: com.uphyca/android-junit4-robolectric

/**
 * @param event
 * @return
 * @see android.app.Activity#onGenericMotionEvent(android.view.MotionEvent)
 */
public boolean onGenericMotionEvent(MotionEvent event) {
  return mActivity.onGenericMotionEvent(event);
}

代码示例来源:origin: shazam/android-aspects

@Override
public boolean onGenericMotionEvent(MotionEvent event) {
  return super.onGenericMotionEvent(event) || dispatcher.dispatchOnGenericMotionEvent(this, event);
}

代码示例来源:origin: ginkage/wearmouse

@Override
public boolean onGenericMotionEvent(MotionEvent ev) {
  return (!keypadMode && ((MouseFragment) getFragment()).onGenericMotionEvent(ev))
      || super.onGenericMotionEvent(ev);
}

代码示例来源:origin: iqiyi/Neptune

@Override
public boolean onGenericMotionEvent(MotionEvent event) {
  if (getController() != null && getController().getPlugin() != null) {
    return getController().getPlugin().onGenericMotionEvent(event);
  } else {
    return super.onGenericMotionEvent(event);
  }
}

代码示例来源:origin: ELynx/pokemon-go-xposed-mitm

public boolean onGenericMotionEvent(android.view.MotionEvent event) {
 if (ScriptLoader.isCalledFromJRuby()) return super.onGenericMotionEvent(event);
 if (!JRubyAdapter.isInitialized()) {
  Log.i("Method called before JRuby runtime was initialized: RubotoActivity#onGenericMotionEvent");
  return super.onGenericMotionEvent(event);
 }
 String rubyClassName = scriptInfo.getRubyClassName();
 if (rubyClassName == null) return super.onGenericMotionEvent(event);
 if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(false).any?{|m| m.to_sym == :onGenericMotionEvent}")) {
  return (Boolean) JRubyAdapter.runRubyMethod(Boolean.class, scriptInfo.getRubyInstance(), "onGenericMotionEvent", event);
 } else {
  if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(false).any?{|m| m.to_sym == :on_generic_motion_event}")) {
   return (Boolean) JRubyAdapter.runRubyMethod(Boolean.class, scriptInfo.getRubyInstance(), "on_generic_motion_event", event);
  } else {
   if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(true).any?{|m| m.to_sym == :on_generic_motion_event}")) {
    return (Boolean) JRubyAdapter.runRubyMethod(Boolean.class, scriptInfo.getRubyInstance(), "on_generic_motion_event", event);
   } else {
    return (Boolean) JRubyAdapter.runRubyMethod(Boolean.class, scriptInfo.getRubyInstance(), "onGenericMotionEvent", event);
   }
  }
 }
}

相关文章

微信公众号

最新文章

更多

Activity类方法