package com.hosaka.rxanimation.animator;

import android.animation.Animator;
import android.annotation.TargetApi;
import android.os.Build;
import android.support.annotation.CheckResult;
import android.support.annotation.NonNull;

import rx.Observable;

/**
 * Static factory methods for animator event observable.
 */
public final class RxAnimator {

    @CheckResult
    @NonNull
    public static Observable<AnimatorEvent> events(@NonNull Animator animation) {
        return Observable.create(new AnimatorEventOnSubscribe(animation));
    }

    @TargetApi(Build.VERSION_CODES.KITKAT)
    @CheckResult
    @NonNull
    public static Observable<AnimatorPauseEvent> pauseEvents(@NonNull Animator animation) {
        return Observable.create(new AnimatorPauseEventOnSubscribe(animation));
    }

}

@@ -70,16 +70,56 @@
 imator;%0A
+import android.animation.ValueAnimator;%0A
 import a
@@ -830,10 +830,227 @@
 %0A    %7D%0A%0A
+    @CheckResult%0A    @NonNull%0A    public static Observable%3CAnimatorUpdateEvent%3E updateEvents(@NonNull ValueAnimator animation) %7B%0A        return Observable.create(new AnimatorUpdateEventOnSubscribe(animation));%0A    %7D%0A%0A
 %7D%0A

add creater function