MapboxHistoryRecorder

class MapboxHistoryRecorder

Provides a mechanism for saving and retrieving Mapbox navigation history files. Retrieve an instance of this class through MapboxNavigation.historyRecorder.

See also

com.mapbox.navigation.base.options.HistoryRecorderOptions

to enable the recorder.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
fileDirectory
Link copied to clipboard
fun fileDirectory(): String?
The file directory where the history files are stored.
hashCode
Link copied to clipboard
open fun hashCode(): Int
pushHistory
Link copied to clipboard
fun pushHistory(eventType: String, eventJson: String)
Adds a custom event to the navigators history.
startRecording
Link copied to clipboard
fun startRecording()
Starts history recording session.
stopRecording
Link copied to clipboard
fun stopRecording(result: SaveHistoryCallback)
When called, history recording will be stopped and all records will be added to the file.
toString
Link copied to clipboard
open fun toString(): String