@Test public void testTransition() throws Exception { module.transition("","",""); module.transition("test","test",""); }
@JSMethod public void transition(@Nullable String ref, @Nullable String animation, @Nullable String callBack) { if(!TextUtils.isEmpty(ref)&&!TextUtils.isEmpty(animation)) { Message msg = Message.obtain(); WXDomTask task = new WXDomTask(); task.instanceId = mWXSDKInstance.getInstanceId(); task.args = new ArrayList<>(); task.args.add(ref); task.args.add(animation); task.args.add(callBack); msg.what = WXDomHandler.MsgType.WX_ANIMATION; msg.obj = task; WXSDKManager.getInstance().getWXDomManager().sendMessage(msg); } }
WXAnimationModule extends WXModule { @JSMethod public void transition(@Nullable String ref, @Nullable String animation, @Nullable String callBack) { if(!TextUtils.isEmpty(ref)&&!TextUtils.isEmpty(animation)) { Message msg = Message.obtain(); WXDomTask task = new WXDomTask(); task.instanceId = mWXSDKInstance.getInstanceId(); task.args = new ArrayList<>(); task.args.add(ref); task.args.add(animation); task.args.add(callBack); msg.what = WXDomHandler.MsgType.WX_ANIMATION; msg.obj = task; WXSDKManager.getInstance().getWXDomManager().sendMessage(msg); } } }
WXAnimationModule extends WXModule { @JSMethod public void transition(@Nullable String ref, @Nullable String animation, @Nullable String callBack) { if(!TextUtils.isEmpty(ref)&&!TextUtils.isEmpty(animation)) { Message msg = Message.obtain(); WXDomTask task = new WXDomTask(); task.instanceId = mWXSDKInstance.getInstanceId(); task.args = new ArrayList<>(); task.args.add(ref); task.args.add(animation); task.args.add(callBack); msg.what = WXDomHandler.MsgType.WX_ANIMATION; msg.obj = task; WXSDKManager.getInstance().getWXDomManager().sendMessage(msg); } }  }
WXAnimationModule extends WXModule { @JSMethod public void transition(@Nullable String ref, @Nullable String animation, @Nullable String callBack) { if(!TextUtils.isEmpty(ref)&&!TextUtils.isEmpty(animation)) { Message msg = Message.obtain(); WXDomTask task = new WXDomTask(); task.instanceId = mWXSDKInstance.getInstanceId(); task.args = new ArrayList<>(); task.args.add(ref); task.args.add(animation); task.args.add(callBack); msg.what = WXDomHandler.MsgType.WX_ANIMATION; msg.obj = task; WXSDKManager.getInstance().getWXDomManager().sendMessage(msg); } }  @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 { @JSMethod public void transition(@Nullable String ref, @Nullable String animation, @Nullable String callBack) { if(!TextUtils.isEmpty(ref)&&!TextUtils.isEmpty(animation)) { Message msg = Message.obtain(); WXDomTask task = new WXDomTask(); task.instanceId = mWXSDKInstance.getInstanceId(); task.args = new ArrayList<>(); task.args.add(ref); task.args.add(animation); task.args.add(callBack); msg.what = WXDomHandler.MsgType.WX_ANIMATION; msg.obj = task; WXSDKManager.getInstance().getWXDomManager().sendMessage(msg); } }  @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);  }