Package com.pspdfkit.ui.toolbar.rx
Class TranslateSubmenuToolbarCompletableOnSubscribe
-
- All Implemented Interfaces:
-
io.reactivex.rxjava3.core.CompletableOnSubscribe
public class TranslateSubmenuToolbarCompletableOnSubscribe implements CompletableOnSubscribe
Asynchronously chainable animation on the submenu toolbar.
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
Modifier and Type Method Description void
subscribe(CompletableEmitterĀ completableEmitter)
-
-
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.- Parameters:
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)
-
-
-
-