@SimpleFunction
public void Start (AndroidViewComponent view, float awal, float akhir, int duration, int repeat) {
ObjectAnimator rotate = ObjectAnimator.ofFloat(view.getView(), "rotation", awal, akhir);
rotate.setRepeatCount(repeat);
rotate.setInterpolator(new LinearInterpolator());
rotate.setDuration(duration);
rotate.start();
}
@SimpleFunction(description = “pause”)
public void pause(AndroidViewComponent view) {
setrotate.pause();
}
}
i tried simple function pause not work .