selectLegIndex
Manually set the selected leg index, on the set route. This may throw an exception if the resulting internal state is invalid (parsed index is out of bounds)
Parameters
legIndex
Leg index
onCameraEvent
Notified once the camera has stopped framing the selected leg, or
nullto not be notified. See MPDirectionsRenderer for when and how it is called
Throws
If the set leg index is out of bounds and the SDK is in MPDebugLog.enableDeveloperMode. onCameraEvent is then not called