本文整理匯總了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();
}
}