pitchWhileTracking

Tilts the camera. This API can only be used in pair with camera modes other than CameraMode.NONE. If you are not using any of CameraMode modes, use one of MapboxMap.moveCamera, MapboxMap.easeCamera or MapboxMap.animateCamera instead.

If the camera is transitioning when the pitch change is requested, the call is going to be ignored. Use CameraTransitionListener to chain the animations, or provide the pitch as a camera change argument.

Parameters

animationDuration

The pitch animation duration.

callback

The callback with finish/cancel information

pitch

The desired camera pitch.

fun pitchWhileTracking(pitch: Double, animationDuration: Long, callback: CancelableCallback?)

Tilts the camera. This API can only be used in pair with camera modes other than CameraMode.NONE. If you are not using any of CameraMode modes, use one of MapboxMap.moveCamera, MapboxMap.easeCamera or MapboxMap.animateCamera instead.

If the camera is transitioning when the pitch change is requested, the call is going to be ignored. Use CameraTransitionListener to chain the animations, or provide the pitch as a camera change argument.

Parameters

animationDuration

The pitch animation duration.

pitch

The desired camera pitch.

fun pitchWhileTracking(pitch: Double, animationDuration: Long)

Pitches the camera. This API can only be used in pair with camera modes other than CameraMode.NONE. If you are not using any of CameraMode modes, use one of MapboxMap.moveCamera, MapboxMap.easeCamera or MapboxMap.animateCamera instead.

If the camera is transitioning when the pitch change is requested, the call is going to be ignored. Use CameraTransitionListener to chain the animations, or provide the pitch as a camera change argument.

Parameters

pitch

The desired camera pitch.

fun pitchWhileTracking(pitch: Double)