Class TranslateSubmenuToolbarCompletableOnSubscribe

  • All Implemented Interfaces:

    public class TranslateSubmenuToolbarCompletableOnSubscribe
     implements CompletableOnSubscribe

    Asynchronously chainable animation on the submenu toolbar.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void subscribe(CompletableEmitter completableEmitter)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TranslateSubmenuToolbarCompletableOnSubscribe

        TranslateSubmenuToolbarCompletableOnSubscribe(ContextualToolbarSubMenu submenuBar, int translateX, int translateY, long durationMs, Interpolator interpolator)
        Creates a CompletableOnSubscribe that animates the passed toolbar and calls onComplete() on subscriber once finished.
        submenuBar - Submenu bar to be animated.
        translateX - Targeted x-translation property value at the end of animation.
        translateY - Targeted y-translation property value at the end of animation.
        durationMs - Duration of the animation in milliseconds.
        interpolator - Animation interpolator, default is LinearInterpolator.
    • Method Detail

      • subscribe

         void subscribe(CompletableEmitter completableEmitter)