本文整理汇总了Java中com.facebook.drawee.backends.pipeline.Fresco.hasBeenInitialized方法的典型用法代码示例。如果您正苦于以下问题:Java Fresco.hasBeenInitialized方法的具体用法?Java Fresco.hasBeenInitialized怎么用?Java Fresco.hasBeenInitialized使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.facebook.drawee.backends.pipeline.Fresco
的用法示例。
在下文中一共展示了Fresco.hasBeenInitialized方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import com.facebook.drawee.backends.pipeline.Fresco; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle arg0) {
super.onCreate(arg0);
try {
if (!Fresco.hasBeenInitialized()) {
UdeskSDKManager.getInstance().init(this);
}
setContentView(R.layout.udesk_zoom_imageview);
zoomImageView = (PhotoDraweeView) findViewById(R.id.udesk_zoom_imageview);
Bundle bundle = getIntent().getExtras();
uri = bundle.getParcelable("image_path");
UdeskUtil.loadImage(zoomImageView, uri);
saveIdBtn = findViewById(R.id.udesk_zoom_save);
saveIdBtn.setOnClickListener(this);
} catch (Exception e) {
e.printStackTrace();
}catch (OutOfMemoryError error){
error.printStackTrace();
}
}
示例2: onCreate
import com.facebook.drawee.backends.pipeline.Fresco; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (!Fresco.hasBeenInitialized()) {
UdeskSDKManager.getInstance().init(this);
}
try {
setContentView(R.layout.udesk_activity_im);
mHandler = new MyHandler(UdeskChatActivity.this);
mPresenter = new ChatActivityPresenter(this);
UdeskBaseInfo.isNeedMsgNotice = false;
InvokeEventContainer.getInstance().event_IsOver.bind(this, "isOverConversation");
isOverConversation = false;
initIntent();
settingTitlebar();
initView();
//进入会话界面 关闭推送
if (!TextUtils.isEmpty(UdeskSDKManager.getInstance().getRegisterId(UdeskChatActivity.this)) && UdeskConfig.isUserSDkPush) {
UdeskSDKManager.getInstance().setSdkPushStatus(UdeskSDKManager.getInstance().getDomain(this),
UdeskSDKManager.getInstance().getAppkey(this),
UdeskBaseInfo.sdkToken, UdeskConfig.UdeskPushFlag.OFF,
UdeskSDKManager.getInstance().getRegisterId(UdeskChatActivity.this),
UdeskSDKManager.getInstance().getAppId(this));
}
} catch (Exception e) {
e.printStackTrace();
} catch (OutOfMemoryError error) {
error.printStackTrace();
}
}