NavigationBasicGesturesHandler
class NavigationBasicGesturesHandler(navigationCamera: NavigationCamera) : CameraAnimationsLifecycleListener
Content copied to clipboard
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
Functions
Link copied to clipboard
open override fun onAnimatorCancelling( type: CameraAnimatorType, animator: ValueAnimator, owner: String?)
Content copied to clipboard
Called when animator is about to start.
Link copied to clipboard
open override fun onAnimatorEnding( type: CameraAnimatorType, animator: ValueAnimator, owner: String?)
Content copied to clipboard
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?)
Content copied to clipboard
Called when animator is about to end.
Link copied to clipboard
open override fun onAnimatorStarting( type: CameraAnimatorType, animator: ValueAnimator, owner: String?)
Content copied to clipboard
Called when ValueAnimator is about to cancel.