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

    The unique ID of the horizon element.

    Declaration

    Swift

    var id: UUID { get }
  • The path id where this element is found.

    Declaration

    Swift

    var pathID: Int { get }
  • Indicates the start offset along the path this data applies to.

    Declaration

    Swift

    var startOffset: Measurement<UnitLength> { get }
  • Indicates the end offset along the path this data applies to.

    Declaration

    Swift

    var endOffset: Measurement<UnitLength> { get }
  • Type of the element used to filter elements by type.

    Declaration

    Swift

    var elementType: HorizonElementType { get }