@Test public void testCreateAnimatorListener() throws Exception { }
public static @Nullable Animator.AnimatorListener createAnimatorListener(final WXSDKInstance mWXSDKInstance, @Nullable final String callBack) { if (!TextUtils.isEmpty(callBack)) { return new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { if (mWXSDKInstance == null) { WXLogUtils.e("WXRenderStatement-onAnimationEnd mWXSDKInstance == null NPE"); } else { WXSDKManager.getInstance().callback(mWXSDKInstance.getInstanceId(), callBack, new HashMap<String, Object>()); } } }; } else { return null; } }
WXAnimationModule extends WXModule { public static @Nullable Animator.AnimatorListener createAnimatorListener(final WXSDKInstance mWXSDKInstance, @Nullable final String callBack) { if (!TextUtils.isEmpty(callBack)) { return new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { if (mWXSDKInstance == null) { WXLogUtils.e("WXRenderStatement-onAnimationEnd mWXSDKInstance == null NPE"); } else { WXSDKManager.getInstance().callback(mWXSDKInstance.getInstanceId(), callBack, new HashMap<String, Object>()); } } }; } else { return null; } } }
WXAnimationModule extends WXModule { public static @Nullable Animator.AnimatorListener createAnimatorListener(final WXSDKInstance mWXSDKInstance, @Nullable final String callBack) { if (!TextUtils.isEmpty(callBack)) { return new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { if (mWXSDKInstance == null) { WXLogUtils.e("WXRenderStatement-onAnimationEnd mWXSDKInstance == null NPE"); } else { WXSDKManager.getInstance().callback(mWXSDKInstance.getInstanceId(), callBack, new HashMap<String, Object>()); } } }; } else { return null; } }  }
WXAnimationModule extends WXModule { public static @Nullable Animator.AnimatorListener createAnimatorListener(final WXSDKInstance mWXSDKInstance, @Nullable final String callBack) { if (!TextUtils.isEmpty(callBack)) { return new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { if (mWXSDKInstance == null) { WXLogUtils.e("WXRenderStatement-onAnimationEnd mWXSDKInstance == null NPE"); } else { WXSDKManager.getInstance().callback(mWXSDKInstance.getInstanceId(), callBack, new HashMap<String, Object>()); } } }; } else { return null; } }  @JSMethod void transition(@Nullable String ref, @Nullable String animation, @Nullable String callBack); static void startAnimation(WXSDKInstance mWXSDKInstance, WXComponent component,
                                    @NonNull WXAnimationBean animationBean, @Nullable String callback); static @Nullable Animator.AnimatorListener createAnimatorListener(final WXSDKInstance mWXSDKInstance, @Nullable final String callBack); }
WXAnimationModule extends WXModule { public static @Nullable Animator.AnimatorListener createAnimatorListener(final WXSDKInstance mWXSDKInstance, @Nullable final String callBack) { if (!TextUtils.isEmpty(callBack)) { return new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { if (mWXSDKInstance == null) { WXLogUtils.e("WXRenderStatement-onAnimationEnd mWXSDKInstance == null NPE"); } else { WXSDKManager.getInstance().callback(mWXSDKInstance.getInstanceId(), callBack, new HashMap<String, Object>()); } } }; } else { return null; } }  @JSMethod void transition(@Nullable String ref, @Nullable String animation, @Nullable String callBack); static void startAnimation(WXSDKInstance mWXSDKInstance, WXComponent component,
                                    @NonNull WXAnimationBean animationBean, @Nullable String callback); static @Nullable Animator.AnimatorListener createAnimatorListener(final WXSDKInstance mWXSDKInstance, @Nullable final String callBack);  }