stopRecording

fun stopRecording(result: SaveHistoryCallback)

When called, history recording will be stopped and all records will be added to the file. The path to the file will be sent to the SaveHistoryCallback.onSaved interface. If history recording was not started, SaveHistoryCallback is called with a null file path. MapboxHistoryRecorder.startRecording can be called before the SaveHistoryCallback completes.

See also

Parameters

result

Callback which shares the history that has been saved