LandmarkInfoStruct

struct LandmarkInfoStruct

The data from this structure indicates a landmark and device position relative to the landmark.

  • Indicates that the area is associated with a landmark. This field is the ID of a landmark semantic tag, located within the Common Landmark Namespace defined in the Matter specification.

    Declaration

    Swift

    let landmarkTag: UInt8
  • The position of the area relative to a landmark. This is a static description of a zone known to the server, and this field never reflects the device’s own proximity or position relative to the landmark, but that of the zone. This field is the ID of a relative position semantic tag, located within the Common Relative Position Namespace defined in the Matter specification.

    Declaration

    Swift

    let relativePositionTag: UInt8?
  • Creates a new Struct instance using data read from the given TraitDecoder.

    Throws

    HomeError.parseError when parsing fails.

    Declaration

    Swift

    init(decoder: TraitDecoder) throws

    Parameters

    decoder

    The raw data representing this Struct.

  • Writes this Struct to the given TraitEncoder. Throws HomeError.parseError if the data could not be encoded.

    Declaration

    Swift

    func encode(with encoder: TraitEncoder) throws
  • Returns the field corresponding to the given field ID.

    Declaration

    Swift

    static func structField(id: UInt32) -> (any Field)?