Levels

struct Levels

Information about security-level names.

  • The internal name of the security level that is used in commands and states. This name can be non user friendly and is shared across all languages.

    Declaration

    Swift

    let level: String
  • Repeated sets of synonyms for a specific langauage.

    Declaration

    Swift

    let levelValues: [Google.ArmDisarmTrait.LevelValues]
  • The security-level category.

    Declaration

    Swift

    let levelCategory: Google.ArmDisarmTrait.LevelCategory
  • Number of seconds before the currentArmLevel takes effect.

    Declaration

    Swift

    let exitAllowanceSeconds: UInt32
  • 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)?