SwiftextensionHomeDataModel
extension MTRDevice
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
extends{}
classMTRDevice
Members 12
- func
add(MTRDeviceDelegate) -> () - func
clientData(key: HomeDataModel.MatterMetadataKey, endpointID: UInt16?) -> Any? - func
cluster<A where A: MTRCluster>(of: A.Type, endpointID: UInt16) -> A? - func
getAttributeData(path: HomeDataModel.ClusterIDProviding, attributeID: UInt32) -> [String : Any]? - func
perform(commandGroups: [[HomeDataModel.MatterCommand]], on: UInt16) async throws -> [[String : Sendable]] - func
performCommand(path: HomeDataModel.ClusterPath, commandID: UInt32, commandFields: [String : Any]?, expectedValues: [[String : Any]]?) async throws -> [[String : Sendable]]? - func
readValue(for: UInt32, in: HomeDataModel.ClusterIDProviding) -> Sendable? - func
readValues(for: [HomeDataModel.MatterAttributeRequestPath]) -> HomeDataModel.AttributeValueSet - func
setClientData(key: HomeDataModel.MatterMetadataKey, endpointID: UInt16?, value: Any?) -> () - func
wait(forAttributeValues: [MTRAttributePath : [String : Sendable]], timeout: Double) async throws -> () - func
writeAttribute(path: HomeDataModel.ClusterPath, attributeID: UInt32, value: Any) -> () - var
var identifier: UInt64 { get }
Header
extension __C.MTRDevice { var identifier: Swift.UInt64 { get } func getAttributeData(path: any HomeDataModel.ClusterIDProviding, attributeID: Swift.UInt32) -> [Swift.String : Any]? func clientData(key: HomeDataModel.MatterMetadataKey, endpointID: Swift.UInt16?) -> Any? func setClientData(key: HomeDataModel.MatterMetadataKey, endpointID: Swift.UInt16?, value: Any?) func readValues(for: [HomeDataModel.MatterAttributeRequestPath]) -> HomeDataModel.AttributeValueSet func performCommand(path: HomeDataModel.ClusterPath, commandID: Swift.UInt32, commandFields: [Swift.String : Any]?, expectedValues: [[Swift.String : Any]]?) async throws -> [[Swift.String : any Swift.Sendable]]? func writeAttribute(path: HomeDataModel.ClusterPath, attributeID: Swift.UInt32, value: Any) func add(_: any __C.MTRDeviceDelegate) func wait(forAttributeValues: [__C.MTRAttributePath : [Swift.String : any Swift.Sendable]], timeout: Swift.Double) async throws func cluster<A>(of: A.Type, endpointID: Swift.UInt16) -> A? where A: __C.MTRCluster func perform(commandGroups: [[any HomeDataModel.MatterCommand]], on: Swift.UInt16) async throws -> [[Swift.String : any Swift.Sendable]] func readValue(for: Swift.UInt32, in: any HomeDataModel.ClusterIDProviding) -> (any Swift.Sendable)? }