previousLeg

fun previousLeg(onCameraEvent: MPCameraEventListener? = null)

Selects the previous leg if possible. Once the first 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