HorizonSnapshotState
public struct HorizonSnapshotState : Equatable
State of the HorizonSnapshot
that the HorizonEngine
generates based on a set
of registered HorizonOptions
.
Initializes instance of HorizonSnapshotState
.
Declaration
Swift
public init(updateCounter: Int)
Parameters
updateCounter
|
A counter incremented on each |
Initializes instance of HorizonSnapshotState
.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public init(updateCounter: Int, resetCounter: Int)
Parameters
updateCounter
|
A counter incremented on each |
resetCounter
|
A counter incremented on each horizon reset. |
A counter incremented on each horizon reset. A horizon reset occurs following:
- A map update
- A vehicle profile update
- A route update
- Language update
- When the current input position does not belong to any of the existing horizon paths (for example, a jump to a new place).
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public let resetCounter: Int
A counter incremented on each HorizonSnapshot
update.
Declaration
Swift
public let updateCounter: Int