nextLeg

fun nextLeg(onCameraEvent: MPCameraEventListener? = null)

Selects the next leg if possible. Once the last leg is reached, further use of this method is idempotent

Parameters

onCameraEvent
  • Notified once the camera has stopped framing the selected leg, or null to not be notified. See MPDirectionsRenderer for when and how it is called