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

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

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

Activity.onUserInteraction介绍

暂无

代码示例

代码示例来源:origin: omadahealth/LolliPin

@Override
public void onUserInteraction() {
  if (mLifeCycleListener != null){
    mLifeCycleListener.onActivityUserInteraction(PinActivity.this);
  }
  super.onUserInteraction();
}

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

/**
 * 
 * @see android.app.Activity#onUserInteraction()
 */
public void onUserInteraction() {
  mActivity.onUserInteraction();
}

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

@Override
public void onUserInteraction() {
  mOriginActivity.onUserInteraction();
}

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

@Override
public void onUserInteraction() {
  super.onUserInteraction();
  dispatcher.dispatchOnUserInteraction(this);
}

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

public boolean dispatchTouchEvent(MotionEvent ev) {
  if (ev.getAction() == MotionEvent.ACTION_DOWN) {
    mActivity.onUserInteraction();
  }
  return mWindowEventDispatcher.dispatchTouchEvent(ev)
      || (hasInterceptor() && mEventInterceptor.dispatchTouchEvent(ev))
      || mActivityEventDispatcher.dispatchTouchEvent(ev);
}

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

public boolean dispatchKeyEvent(KeyEvent event) {
  mActivity.onUserInteraction();
  return mWindowEventDispatcher.dispatchKeyEvent(event)
      || (hasInterceptor() && mEventInterceptor.dispatchKeyEvent(event))
      || mActivityEventDispatcher.dispatchKeyEvent(event);
}

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

public boolean dispatchKeyShortcutEvent(KeyEvent event) {
  mActivity.onUserInteraction();
  return mWindowEventDispatcher.dispatchKeyShortcutEvent(event)
      || (hasInterceptor() && mEventInterceptor.dispatchKeyShortcutEvent(event))
      || mActivityEventDispatcher.dispatchKeyShortcutEvent(event);
}

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

public boolean dispatchTrackballEvent(MotionEvent ev) {
  mActivity.onUserInteraction();
  return mWindowEventDispatcher.dispatchTrackballEvent(ev)
      || (hasInterceptor() && mEventInterceptor.dispatchTrackballEvent(ev))
      || mActivityEventDispatcher.dispatchTrackballEvent(ev);
}

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

public boolean dispatchGenericMotionEvent(MotionEvent ev) {
    mActivity.onUserInteraction();
    return mWindowEventDispatcher.dispatchGenericMotionEvent(ev)
        || (hasInterceptor() && mEventInterceptor.dispatchGenericMotionEvent(ev))
        || mActivityEventDispatcher.dispatchGenericMotionEvent(ev);
  }
}

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

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

相关文章

微信公众号

最新文章

更多

Activity类方法