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.
  • id

    Identifier of this element.

    Declaration

    Swift

    var id: Int { get }
  • Identifier of the path to which 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 }