One Logo Pool Ball
Matter · IOS API REFERENCE

MTRBaseClusterElectricalPowerMeasurement

class · iOS 17.6+ · SDK 27.1

class MTRBaseClusterElectricalPowerMeasurement

Members (73)

static · iOS 17.6+

readAttributeAcceptedCommandList

TypeScript
static readAttributeAcceptedCommandListWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeAcceptedCommandList(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> [Any]
static · iOS 17.6+

readAttributeAccuracy

TypeScript
static readAttributeAccuracyWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeAccuracy(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> [Any]
static · iOS 17.6+

readAttributeActiveCurrent

TypeScript
static readAttributeActiveCurrentWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeActiveCurrent(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> NSNumber
static · iOS 17.6+

readAttributeActivePower

TypeScript
static readAttributeActivePowerWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeActivePower(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> NSNumber
static · iOS 17.6+

readAttributeApparentCurrent

TypeScript
static readAttributeApparentCurrentWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeApparentCurrent(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> NSNumber
static · iOS 17.6+

readAttributeApparentPower

TypeScript
static readAttributeApparentPowerWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeApparentPower(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> NSNumber
static · iOS 17.6+

readAttributeAttributeList

TypeScript
static readAttributeAttributeListWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeAttributeList(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> [Any]
static · iOS 17.6+

readAttributeClusterRevision

TypeScript
static readAttributeClusterRevisionWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeClusterRevision(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> NSNumber
static · iOS 17.6+

readAttributeFeatureMap

TypeScript
static readAttributeFeatureMapWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeFeatureMap(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> NSNumber
static · iOS 17.6+

readAttributeFrequency

TypeScript
static readAttributeFrequencyWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeFrequency(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> NSNumber
static · iOS 17.6+

readAttributeGeneratedCommandList

TypeScript
static readAttributeGeneratedCommandListWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeGeneratedCommandList(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> [Any]
static · iOS 17.6+

readAttributeHarmonicCurrents

TypeScript
static readAttributeHarmonicCurrentsWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeHarmonicCurrents(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> [Any]
static · iOS 17.6+

readAttributeHarmonicPhases

TypeScript
static readAttributeHarmonicPhasesWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeHarmonicPhases(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> [Any]
static · iOS 17.6+

readAttributeNeutralCurrent

TypeScript
static readAttributeNeutralCurrentWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeNeutralCurrent(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> NSNumber
static · iOS 17.6+

readAttributeNumberOfMeasurementTypes

TypeScript
static readAttributeNumberOfMeasurementTypesWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeNumberOfMeasurementTypes(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> NSNumber
static · iOS 17.6+

readAttributePowerFactor

TypeScript
static readAttributePowerFactorWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributePowerFactor(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> NSNumber
static · iOS 17.6+

readAttributePowerMode

TypeScript
static readAttributePowerModeWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributePowerMode(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> NSNumber
static · iOS 17.6+

readAttributeRMSCurrent

TypeScript
static readAttributeRMSCurrentWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeRMSCurrent(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> NSNumber
static · iOS 17.6+

readAttributeRMSPower

TypeScript
static readAttributeRMSPowerWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeRMSPower(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> NSNumber
static · iOS 17.6+

readAttributeRMSVoltage

TypeScript
static readAttributeRMSVoltageWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeRMSVoltage(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> NSNumber
static · iOS 17.6+

readAttributeRanges

TypeScript
static readAttributeRangesWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeRanges(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> [Any]
static · iOS 17.6+

readAttributeReactiveCurrent

TypeScript
static readAttributeReactiveCurrentWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeReactiveCurrent(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> NSNumber
static · iOS 17.6+

readAttributeReactivePower

TypeScript
static readAttributeReactivePowerWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeReactivePower(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> NSNumber
static · iOS 17.6+

readAttributeVoltage

TypeScript
static readAttributeVoltageWithClusterStateCacheEndpointQueueCompletion(clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue, completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
class func readAttributeVoltage(withClusterStateCache clusterStateCacheContainer: MTRClusterStateCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> NSNumber
init · iOS 17.6+

init

TypeScript
static init(device: MTRBaseDevice, endpointID: _Foundation_NSNumber, queue: _Dispatch_DispatchQueue): (MTRBaseClusterElectricalPowerMeasurement) | null
Swift declaration
init?(device: MTRBaseDevice, endpointID: NSNumber, queue: dispatch_queue_t)
method · iOS 17.6+

readAttributeAcceptedCommandList

TypeScript
readAttributeAcceptedCommandListCompletion(completion: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeAcceptedCommandList() async throws -> [Any]
method · iOS 17.6+

readAttributeAccuracy

TypeScript
readAttributeAccuracyCompletion(completion: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeAccuracy() async throws -> [Any]
method · iOS 17.6+

readAttributeActiveCurrent

TypeScript
readAttributeActiveCurrentCompletion(completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeActiveCurrent() async throws -> NSNumber
method · iOS 17.6+

readAttributeActivePower

TypeScript
readAttributeActivePowerCompletion(completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeActivePower() async throws -> NSNumber
method · iOS 17.6+

readAttributeApparentCurrent

TypeScript
readAttributeApparentCurrentCompletion(completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeApparentCurrent() async throws -> NSNumber
method · iOS 17.6+

readAttributeApparentPower

TypeScript
readAttributeApparentPowerCompletion(completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeApparentPower() async throws -> NSNumber
method · iOS 17.6+

readAttributeAttributeList

TypeScript
readAttributeAttributeListCompletion(completion: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeAttributeList() async throws -> [Any]
method · iOS 17.6+

readAttributeClusterRevision

TypeScript
readAttributeClusterRevisionCompletion(completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeClusterRevision() async throws -> NSNumber
method · iOS 17.6+

readAttributeFeatureMap

TypeScript
readAttributeFeatureMapCompletion(completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeFeatureMap() async throws -> NSNumber
method · iOS 17.6+

readAttributeFrequency

TypeScript
readAttributeFrequencyCompletion(completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeFrequency() async throws -> NSNumber
method · iOS 17.6+

readAttributeGeneratedCommandList

TypeScript
readAttributeGeneratedCommandListCompletion(completion: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeGeneratedCommandList() async throws -> [Any]
method · iOS 17.6+

readAttributeHarmonicCurrents

TypeScript
readAttributeHarmonicCurrentsCompletion(completion: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeHarmonicCurrents() async throws -> [Any]
method · iOS 17.6+

readAttributeHarmonicPhases

TypeScript
readAttributeHarmonicPhasesCompletion(completion: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeHarmonicPhases() async throws -> [Any]
method · iOS 17.6+

readAttributeNeutralCurrent

TypeScript
readAttributeNeutralCurrentCompletion(completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeNeutralCurrent() async throws -> NSNumber
method · iOS 17.6+

readAttributeNumberOfMeasurementTypes

TypeScript
readAttributeNumberOfMeasurementTypesCompletion(completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeNumberOfMeasurementTypes() async throws -> NSNumber
method · iOS 17.6+

readAttributePowerFactor

TypeScript
readAttributePowerFactorCompletion(completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributePowerFactor() async throws -> NSNumber
method · iOS 17.6+

readAttributePowerMode

TypeScript
readAttributePowerModeCompletion(completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributePowerMode() async throws -> NSNumber
method · iOS 17.6+

readAttributeRMSCurrent

TypeScript
readAttributeRMSCurrentCompletion(completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeRMSCurrent() async throws -> NSNumber
method · iOS 17.6+

readAttributeRMSPower

TypeScript
readAttributeRMSPowerCompletion(completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeRMSPower() async throws -> NSNumber
method · iOS 17.6+

readAttributeRMSVoltage

TypeScript
readAttributeRMSVoltageCompletion(completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeRMSVoltage() async throws -> NSNumber
method · iOS 17.6+

readAttributeRanges

TypeScript
readAttributeRangesCompletion(completion: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeRanges() async throws -> [Any]
method · iOS 17.6+

readAttributeReactiveCurrent

TypeScript
readAttributeReactiveCurrentCompletion(completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeReactiveCurrent() async throws -> NSNumber
method · iOS 17.6+

readAttributeReactivePower

TypeScript
readAttributeReactivePowerCompletion(completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeReactivePower() async throws -> NSNumber
method · iOS 17.6+

readAttributeVoltage

TypeScript
readAttributeVoltageCompletion(completion: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func readAttributeVoltage() async throws -> NSNumber
method · iOS 17.6+

subscribeAttributeAcceptedCommandList

TypeScript
subscribeAttributeAcceptedCommandList(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeAcceptedCommandList(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping ([Any]?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeAccuracy

TypeScript
subscribeAttributeAccuracy(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeAccuracy(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping ([Any]?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeActiveCurrent

TypeScript
subscribeAttributeActiveCurrent(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeActiveCurrent(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeActivePower

TypeScript
subscribeAttributeActivePower(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeActivePower(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeApparentCurrent

TypeScript
subscribeAttributeApparentCurrent(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeApparentCurrent(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeApparentPower

TypeScript
subscribeAttributeApparentPower(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeApparentPower(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeAttributeList

TypeScript
subscribeAttributeAttributeList(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeAttributeList(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping ([Any]?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeClusterRevision

TypeScript
subscribeAttributeClusterRevision(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeClusterRevision(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeFeatureMap

TypeScript
subscribeAttributeFeatureMap(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeFeatureMap(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeFrequency

TypeScript
subscribeAttributeFrequency(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeFrequency(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeGeneratedCommandList

TypeScript
subscribeAttributeGeneratedCommandList(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeGeneratedCommandList(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping ([Any]?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeHarmonicCurrents

TypeScript
subscribeAttributeHarmonicCurrents(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeHarmonicCurrents(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping ([Any]?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeHarmonicPhases

TypeScript
subscribeAttributeHarmonicPhases(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeHarmonicPhases(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping ([Any]?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeNeutralCurrent

TypeScript
subscribeAttributeNeutralCurrent(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeNeutralCurrent(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeNumberOfMeasurementTypes

TypeScript
subscribeAttributeNumberOfMeasurementTypes(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeNumberOfMeasurementTypes(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributePowerFactor

TypeScript
subscribeAttributePowerFactor(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributePowerFactor(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributePowerMode

TypeScript
subscribeAttributePowerMode(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributePowerMode(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeRMSCurrent

TypeScript
subscribeAttributeRMSCurrent(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeRMSCurrent(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeRMSPower

TypeScript
subscribeAttributeRMSPower(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeRMSPower(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeRMSVoltage

TypeScript
subscribeAttributeRMSVoltage(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeRMSVoltage(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeRanges

TypeScript
subscribeAttributeRanges(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (Array<unknown>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeRanges(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping ([Any]?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeReactiveCurrent

TypeScript
subscribeAttributeReactiveCurrent(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeReactiveCurrent(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeReactivePower

TypeScript
subscribeAttributeReactivePower(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeReactivePower(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)
method · iOS 17.6+

subscribeAttributeVoltage

TypeScript
subscribeAttributeVoltage(params: MTRSubscribeParams, subscriptionEstablished: ((() => void)) | null, reportHandler: ((arg0: (_Foundation_NSNumber) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func subscribeAttributeVoltage(with params: MTRSubscribeParams, subscriptionEstablished: MTRSubscriptionEstablishedHandler?, reportHandler: @escaping (NSNumber?, (any Error)?) -> Void)

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

MTRBaseClusterElectricalPowerMeasurement.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All Matter types →