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