Java Code Examples for com.taobao.weex.WXSDKInstance#isDestroy()
The following examples show how to use
com.taobao.weex.WXSDKInstance#isDestroy() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AnimationAction.java From ucar-weex-core with Apache License 2.0 | 6 votes |
private @Nullable Animator.AnimatorListener createAnimatorListener(final WXSDKInstance instance, @Nullable final String callBack) { if (!TextUtils.isEmpty(callBack)) { return new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { if (instance == null || instance.isDestroy()) { WXLogUtils.e("RenderActionContextImpl-onAnimationEnd WXSDKInstance == null NPE or instance is destroyed"); } else { WXSDKManager.getInstance().callback(instance.getInstanceId(), callBack, new HashMap<String, Object>()); } } }; } else { return null; } }
Example 2
Source File: ImageAdapter.java From incubator-weex-playground with Apache License 2.0 | 5 votes |
private void recordImgLoadAction(String instanceId){ WXSDKInstance instance = WXSDKManager.getInstance().getAllInstanceMap().get(instanceId); if (null == instance || instance.isDestroy()){ return; } instance.getApmForInstance().actionLoadImg(); }
Example 3
Source File: ImageAdapter.java From incubator-weex-playground with Apache License 2.0 | 5 votes |
private void recordImgLoadResult(String instanceId,boolean succeed,String errorCode){ WXSDKInstance instance = WXSDKManager.getInstance().getAllInstanceMap().get(instanceId); if (null == instance || instance.isDestroy()){ return; } instance.getApmForInstance().actionLoadImgResult(succeed,errorCode); }