HorizonElement
public protocol HorizonElement
Defines the interface to horizon elements.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Identifier of this element.
Declaration
Swift
var id: Int { get } -
Identifier of the path where this element belongs.
Declaration
Swift
var pathID: Int { get } -
Start offset on the path.
Declaration
Swift
var startOffset: Measurement<UnitLength> { get } -
End offset on the path.
Declaration
Swift
var endOffset: Measurement<UnitLength> { get } -
Type of the element used to filter elements by type.
Declaration
Swift
var elementType: HorizonElementType { get }
HorizonElement Protocol Reference