MapboxHistoryReader

class MapboxHistoryReader(filePath: String) : Iterator<HistoryEvent>

Allows you to read history files previously saved by MapboxHistoryRecorder. All files in the MapboxHistoryRecorder.fileDirectory can be read with this reader.

Parameters

filePath

absolute path to a file containing the native history file.

Constructors

MapboxHistoryReader
Link copied to clipboard
fun MapboxHistoryReader(filePath: String)
absolute path to a file containing the native history file.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
forEachRemaining
Link copied to clipboard
open fun forEachRemaining(p0: Consumer<in HistoryEvent>)
hashCode
Link copied to clipboard
open fun hashCode(): Int
hasNext
Link copied to clipboard
open operator override fun hasNext(): Boolean
Returns true if the iteration has more elements.
next
Link copied to clipboard
open operator override fun next(): HistoryEvent
Returns the next element in the iteration.
toString
Link copied to clipboard
open fun toString(): String

Properties

filePath
Link copied to clipboard
val filePath: String
absolute path to a file containing the native history file.