struct ProgressStructData about the operating status of an area.
-
The identifier of the area, where the identifier is an entry in the
supportedAreasattribute’s list.Declaration
Swift
let areaID: UInt32 -
The operational status of the device for the area, indicated by the
areaIDfield.Declaration
Swift
let status: Matter.ServiceAreaTrait.OperationalStatusEnum -
The total operational time, in seconds, from when the device started to operate at the area indicated by the
areaIDfield until the operation finished.Declaration
Swift
let totalOperationalTime: UInt32? -
The estimated time for the operation, in seconds, from when the device starts operating at the area indicated by the
areaIDfield until the operation completes, excluding any time spent while not operating in the area.Declaration
Swift
let estimatedTime: UInt32? -
Creates a new Struct instance using data read from the given
TraitDecoder.Throws
HomeError.parseErrorwhen parsing fails.Declaration
Swift
init(decoder: TraitDecoder) throwsParameters
decoderThe raw data representing this Struct.
-
Writes this Struct to the given
TraitEncoder. ThrowsHomeError.parseErrorif 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)?