本文整理了Java中android.app.Activity.onUserInteraction()
方法的一些代码示例,展示了Activity.onUserInteraction()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.onUserInteraction()
方法的具体详情如下:
包路径:android.app.Activity
类名称: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");
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!