package com.pspdfkit.vangogh.api;

import com.pspdfkit.vangogh.rx.AnimationCompletable;
import io.reactivex.Completable;

/**
 * Class containing convenient animation scheduling methods.
 */
public final class AnimationSchedulers {

    /**
     * Animates given animations at the same time.
     * @param animations Animation to execute together.
     * @return Completable finishing once the last animation is completed.
     */
    public static Completable together(AnimationCompletable... animations) {
        return Completable.mergeArray(animations);
    }

    /**
     * Animates given animations one after another
     * @param animations Animation to execute sequentially.
     * @return Completable finishing once the last animation is completed.
     */
    public static Completable sequentially(AnimationCompletable... animations) {
        return Completable.concatArray(animations);
    }

}

@@ -311,32 +311,33 @@
 ations Animation
+s
  to execute toge
@@ -342,16 +342,16 @@
 gether.%0A
-
      * @
@@ -464,25 +464,16 @@
 ogether(
-Animation
 Completa
@@ -644,16 +644,17 @@
 nimation
+s
  to exec
@@ -746,32 +746,32 @@
 pleted.%0A     */%0A
+
     public stati
@@ -797,25 +797,16 @@
 ntially(
-Animation
 Completa

Enable scheduling Completables, not just AnimationCompletables