NavigationBasicGesturesHandler

class NavigationBasicGesturesHandler(navigationCamera: NavigationCamera) : CameraAnimationsLifecycleListener

Provides a basic support in reacting to map gesture interaction and other animations scheduled outside of the NavigationCamera context.

Whenever any gesture input is registered or any other transition is started, the NavigationCamera will immediately fallback to NavigationCameraState.IDLE state to avoid running competing animations.

To initialize the handler, register it via CameraAnimationsPlugin.addCameraAnimationsLifecycleListener. To deinitialize, call CameraAnimationsPlugin.removeCameraAnimationsLifecycleListener.

Constructors

Link copied to clipboard
fun NavigationBasicGesturesHandler(navigationCamera: NavigationCamera)

Functions

Link copied to clipboard
open override fun onAnimatorCancelling(    type: CameraAnimatorType,     animator: ValueAnimator,     owner: String?)

Called when animator is about to start.

Link copied to clipboard
open override fun onAnimatorEnding(    type: CameraAnimatorType,     animator: ValueAnimator,     owner: String?)

Called when animator is about to cancel already running animator of same CameraAnimatorType.

Link copied to clipboard
open override fun onAnimatorInterrupting(    type: CameraAnimatorType,     runningAnimator: ValueAnimator,     runningAnimatorOwner: String?,     newAnimator: ValueAnimator,     newAnimatorOwner: String?)

Called when animator is about to end.

Link copied to clipboard
open override fun onAnimatorStarting(    type: CameraAnimatorType,     animator: ValueAnimator,     owner: String?)

Called when ValueAnimator is about to cancel.