@@ -121,30 +121,30 @@ typedef void (^MTRDeviceResubscriptionScheduledHandler)(NSError * error, NSNumbe
121
121
MTR_AVAILABLE (ios(16.2 ), macos(13.1 ), watchos(9.2 ), tvos(16.2 ))
122
122
typedef void (^MTRDeviceOpenCommissioningWindowHandler)(MTRSetupPayload * _Nullable payload, NSError * _Nullable error);
123
123
124
- extern NSString * const MTRAttributePathKey;
125
- extern NSString * const MTRCommandPathKey;
126
- extern NSString * const MTREventPathKey;
127
- extern NSString * const MTRDataKey;
128
- extern NSString * const MTRErrorKey;
129
- extern NSString * const MTRTypeKey;
130
- extern NSString * const MTRValueKey;
131
- extern NSString * const MTRContextTagKey;
132
- extern NSString * const MTRSignedIntegerValueType;
133
- extern NSString * const MTRUnsignedIntegerValueType;
134
- extern NSString * const MTRBooleanValueType;
135
- extern NSString * const MTRUTF8StringValueType;
136
- extern NSString * const MTROctetStringValueType;
137
- extern NSString * const MTRFloatValueType;
138
- extern NSString * const MTRDoubleValueType;
139
- extern NSString * const MTRNullValueType;
140
- extern NSString * const MTRStructureValueType;
141
- extern NSString * const MTRArrayValueType;
142
- extern NSString * const MTREventNumberKey MTR_AVAILABLE (ios(16.5 ), macos(13.4 ), watchos(9.5 ), tvos(16.5 ));
143
- extern NSString * const MTREventPriorityKey MTR_AVAILABLE (ios(16.5 ), macos(13.4 ), watchos(9.5 ), tvos(16.5 ));
144
- extern NSString * const MTREventTimeTypeKey MTR_AVAILABLE (ios(16.5 ), macos(13.4 ), watchos(9.5 ), tvos(16.5 ));
145
- extern NSString * const MTREventSystemUpTimeKey MTR_AVAILABLE (ios(16.5 ), macos(13.4 ), watchos(9.5 ), tvos(16.5 ));
146
- extern NSString * const MTREventTimestampDateKey MTR_AVAILABLE (ios(16.5 ), macos(13.4 ), watchos(9.5 ), tvos(16.5 ));
147
- extern NSString * const MTREventIsHistoricalKey MTR_AVAILABLE (ios(17.3 ), macos(14.3 ), watchos(10.3 ), tvos(17.3 ));
124
+ MTR_EXTERN NSString * const MTRAttributePathKey MTR_AVAILABLE (ios( 16.1 ), macos( 13.0 ), watchos( 9.1 ), tvos( 16.1 )) ;
125
+ MTR_EXTERN NSString * const MTRCommandPathKey MTR_AVAILABLE (ios( 16.1 ), macos( 13.0 ), watchos( 9.1 ), tvos( 16.1 )) ;
126
+ MTR_EXTERN NSString * const MTREventPathKey MTR_AVAILABLE (ios( 16.1 ), macos( 13.0 ), watchos( 9.1 ), tvos( 16.1 )) ;
127
+ MTR_EXTERN NSString * const MTRDataKey MTR_AVAILABLE (ios( 16.1 ), macos( 13.0 ), watchos( 9.1 ), tvos( 16.1 )) ;
128
+ MTR_EXTERN NSString * const MTRErrorKey MTR_AVAILABLE (ios( 16.1 ), macos( 13.0 ), watchos( 9.1 ), tvos( 16.1 )) ;
129
+ MTR_EXTERN NSString * const MTRTypeKey MTR_AVAILABLE (ios( 16.1 ), macos( 13.0 ), watchos( 9.1 ), tvos( 16.1 )) ;
130
+ MTR_EXTERN NSString * const MTRValueKey MTR_AVAILABLE (ios( 16.1 ), macos( 13.0 ), watchos( 9.1 ), tvos( 16.1 )) ;
131
+ MTR_EXTERN NSString * const MTRContextTagKey MTR_AVAILABLE (ios( 16.1 ), macos( 13.0 ), watchos( 9.1 ), tvos( 16.1 )) ;
132
+ MTR_EXTERN NSString * const MTRSignedIntegerValueType MTR_AVAILABLE (ios( 16.1 ), macos( 13.0 ), watchos( 9.1 ), tvos( 16.1 )) ;
133
+ MTR_EXTERN NSString * const MTRUnsignedIntegerValueType MTR_AVAILABLE (ios( 16.1 ), macos( 13.0 ), watchos( 9.1 ), tvos( 16.1 )) ;
134
+ MTR_EXTERN NSString * const MTRBooleanValueType MTR_AVAILABLE (ios( 16.1 ), macos( 13.0 ), watchos( 9.1 ), tvos( 16.1 )) ;
135
+ MTR_EXTERN NSString * const MTRUTF8StringValueType MTR_AVAILABLE (ios( 16.1 ), macos( 13.0 ), watchos( 9.1 ), tvos( 16.1 )) ;
136
+ MTR_EXTERN NSString * const MTROctetStringValueType MTR_AVAILABLE (ios( 16.1 ), macos( 13.0 ), watchos( 9.1 ), tvos( 16.1 )) ;
137
+ MTR_EXTERN NSString * const MTRFloatValueType MTR_AVAILABLE (ios( 16.1 ), macos( 13.0 ), watchos( 9.1 ), tvos( 16.1 )) ;
138
+ MTR_EXTERN NSString * const MTRDoubleValueType MTR_AVAILABLE (ios( 16.1 ), macos( 13.0 ), watchos( 9.1 ), tvos( 16.1 )) ;
139
+ MTR_EXTERN NSString * const MTRNullValueType MTR_AVAILABLE (ios( 16.1 ), macos( 13.0 ), watchos( 9.1 ), tvos( 16.1 )) ;
140
+ MTR_EXTERN NSString * const MTRStructureValueType MTR_AVAILABLE (ios( 16.1 ), macos( 13.0 ), watchos( 9.1 ), tvos( 16.1 )) ;
141
+ MTR_EXTERN NSString * const MTRArrayValueType MTR_AVAILABLE (ios( 16.1 ), macos( 13.0 ), watchos( 9.1 ), tvos( 16.1 )) ;
142
+ MTR_EXTERN NSString * const MTREventNumberKey MTR_AVAILABLE (ios(16.5 ), macos(13.4 ), watchos(9.5 ), tvos(16.5 ));
143
+ MTR_EXTERN NSString * const MTREventPriorityKey MTR_AVAILABLE (ios(16.5 ), macos(13.4 ), watchos(9.5 ), tvos(16.5 ));
144
+ MTR_EXTERN NSString * const MTREventTimeTypeKey MTR_AVAILABLE (ios(16.5 ), macos(13.4 ), watchos(9.5 ), tvos(16.5 ));
145
+ MTR_EXTERN NSString * const MTREventSystemUpTimeKey MTR_AVAILABLE (ios(16.5 ), macos(13.4 ), watchos(9.5 ), tvos(16.5 ));
146
+ MTR_EXTERN NSString * const MTREventTimestampDateKey MTR_AVAILABLE (ios(16.5 ), macos(13.4 ), watchos(9.5 ), tvos(16.5 ));
147
+ MTR_EXTERN NSString * const MTREventIsHistoricalKey MTR_AVAILABLE (ios(17.3 ), macos(14.3 ), watchos(10.3 ), tvos(17.3 ));
148
148
149
149
@class MTRClusterStateCacheContainer;
150
150
@class MTRAttributeCacheContainer;
@@ -165,8 +165,7 @@ typedef NS_ENUM(uint8_t, MTRTransportType) {
165
165
*/
166
166
MTR_AVAILABLE (ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ))
167
167
@interface MTRAttributeRequestPath : NSObject <NSCopying>
168
- @property (nonatomic, readonly, copy, nullable) NSNumber * endpoint MTR_AVAILABLE(ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ))
169
- ;
168
+ @property (nonatomic, readonly, copy, nullable) NSNumber * endpoint MTR_AVAILABLE(ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ));
170
169
@property (nonatomic, readonly, copy, nullable) NSNumber * cluster MTR_AVAILABLE (ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ));
171
170
@property (nonatomic, readonly, copy, nullable)
172
171
NSNumber * attribute MTR_AVAILABLE (ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ));
@@ -184,8 +183,7 @@ MTR_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0))
184
183
*/
185
184
MTR_AVAILABLE (ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ))
186
185
@interface MTREventRequestPath : NSObject <NSCopying>
187
- @property (nonatomic, readonly, copy, nullable) NSNumber * endpoint MTR_AVAILABLE(ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ))
188
- ;
186
+ @property (nonatomic, readonly, copy, nullable) NSNumber * endpoint MTR_AVAILABLE(ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ));
189
187
@property (nonatomic, readonly, copy, nullable) NSNumber * cluster MTR_AVAILABLE (ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ));
190
188
@property (nonatomic, readonly, copy, nullable) NSNumber * event MTR_AVAILABLE (ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ));
191
189
@@ -195,6 +193,7 @@ MTR_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0))
195
193
MTR_AVAILABLE (ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ));
196
194
@end
197
195
196
+ MTR_AVAILABLE (ios(16.1 ), macos(13.0 ), watchos(9.1 ), tvos(16.1 ))
198
197
@interface MTRBaseDevice : NSObject
199
198
200
199
- (instancetype )init NS_UNAVAILABLE;
@@ -551,6 +550,7 @@ MTR_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0))
551
550
*/
552
551
MTR_AVAILABLE (ios(16.4 ), macos(13.3 ), watchos(9.4 ), tvos(16.4 ))
553
552
@interface MTRClusterPath : NSObject <NSCopying>
553
+
554
554
@property (nonatomic, readonly, copy) NSNumber * endpoint;
555
555
@property (nonatomic, readonly, copy) NSNumber * cluster;
556
556
@@ -564,7 +564,9 @@ MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4))
564
564
* A path indicating a specific attribute on a device (i.e. without any
565
565
* wildcards).
566
566
*/
567
+ MTR_AVAILABLE (ios(16.1 ), macos(13.0 ), watchos(9.1 ), tvos(16.1 ))
567
568
@interface MTRAttributePath : MTRClusterPath
569
+
568
570
@property (nonatomic, readonly, copy) NSNumber * attribute;
569
571
570
572
+ (MTRAttributePath *)attributePathWithEndpointID:(NSNumber *)endpointID
@@ -578,7 +580,9 @@ MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4))
578
580
* (i.e. without any wildcards). There can be multiple instances of actual
579
581
* events for a given event path.
580
582
*/
583
+ MTR_AVAILABLE (ios(16.1 ), macos(13.0 ), watchos(9.1 ), tvos(16.1 ))
581
584
@interface MTREventPath : MTRClusterPath
585
+
582
586
@property (nonatomic, readonly, copy) NSNumber * event;
583
587
584
588
+ (MTREventPath *)eventPathWithEndpointID:(NSNumber *)endpointID
@@ -590,15 +594,19 @@ MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4))
590
594
* A path indicating a specific command on a device (i.e. without any
591
595
* wildcards).
592
596
*/
597
+ MTR_AVAILABLE (ios(16.1 ), macos(13.0 ), watchos(9.1 ), tvos(16.1 ))
593
598
@interface MTRCommandPath : MTRClusterPath
599
+
594
600
@property (nonatomic, readonly, copy) NSNumber * command;
595
601
596
602
+ (MTRCommandPath *)commandPathWithEndpointID:(NSNumber *)endpointID
597
603
clusterID:(NSNumber *)clusterID
598
604
commandID:(NSNumber *)commandID MTR_AVAILABLE (ios(16.4 ), macos(13.3 ), watchos(9.4 ), tvos(16.4 ));
599
605
@end
600
606
607
+ MTR_AVAILABLE (ios(16.1 ), macos(13.0 ), watchos(9.1 ), tvos(16.1 ))
601
608
@interface MTRAttributeReport : NSObject
609
+
602
610
@property (nonatomic, readonly, copy) MTRAttributePath * path;
603
611
604
612
/* *
@@ -665,7 +673,9 @@ typedef NS_ENUM(NSUInteger, MTREventPriority) {
665
673
MTREventPriorityCritical = 2
666
674
} MTR_AVAILABLE(ios(16.5 ), macos(13.4 ), watchos(9.5 ), tvos(16.5 ));
667
675
676
+ MTR_AVAILABLE (ios(16.1 ), macos(13.0 ), watchos(9.1 ), tvos(16.1 ))
668
677
@interface MTREventReport : NSObject
678
+
669
679
@property (nonatomic, readonly, copy) MTREventPath * path;
670
680
671
681
/* *
0 commit comments