@@ -154,31 +154,36 @@ typedef NS_ENUM(uint8_t, MTRTransportType) {
154
154
*
155
155
* nil is used to represent wildcards.
156
156
*/
157
- MTR_NEWLY_AVAILABLE
157
+ API_AVAILABLE (ios( 17.0 ), macos( 14.0 ), watchos( 10.0 ), tvos( 17.0 ))
158
158
@interface MTRAttributeRequestPath : NSObject <NSCopying>
159
- @property (nonatomic , readonly , copy , nullable ) NSNumber * endpoint;
160
- @property (nonatomic , readonly , copy , nullable ) NSNumber * cluster;
161
- @property (nonatomic , readonly , copy , nullable ) NSNumber * attribute;
159
+ @property (nonatomic, readonly, copy, nullable) NSNumber * endpoint API_AVAILABLE(ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ))
160
+ ;
161
+ @property (nonatomic, readonly, copy, nullable) NSNumber * cluster API_AVAILABLE (ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ));
162
+ @property (nonatomic, readonly, copy, nullable)
163
+ NSNumber * attribute API_AVAILABLE (ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ));
162
164
163
165
+ (MTRAttributeRequestPath *)requestPathWithEndpointID:(NSNumber * _Nullable)endpointID
164
166
clusterID:(NSNumber * _Nullable)clusterID
165
- attributeID : (NSNumber * _Nullable)attributeID MTR_NEWLY_AVAILABLE;
167
+ attributeID:(NSNumber * _Nullable)attributeID
168
+ API_AVAILABLE (ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ));
166
169
@end
167
170
168
171
/* *
169
172
* A path indicating an event being requested (for read or subscribe).
170
173
*
171
174
* nil is used to represent wildcards.
172
175
*/
173
- MTR_NEWLY_AVAILABLE
176
+ API_AVAILABLE (ios( 17.0 ), macos( 14.0 ), watchos( 10.0 ), tvos( 17.0 ))
174
177
@interface MTREventRequestPath : NSObject <NSCopying>
175
- @property (nonatomic , readonly , copy , nullable ) NSNumber * endpoint;
176
- @property (nonatomic , readonly , copy , nullable ) NSNumber * cluster;
177
- @property (nonatomic , readonly , copy , nullable ) NSNumber * event;
178
+ @property (nonatomic, readonly, copy, nullable) NSNumber * endpoint API_AVAILABLE(ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ))
179
+ ;
180
+ @property (nonatomic, readonly, copy, nullable) NSNumber * cluster API_AVAILABLE (ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ));
181
+ @property (nonatomic, readonly, copy, nullable) NSNumber * event API_AVAILABLE (ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ));
178
182
179
183
+ (MTREventRequestPath *)requestPathWithEndpointID:(NSNumber * _Nullable)endpointID
180
184
clusterID:(NSNumber * _Nullable)clusterID
181
- eventID : (NSNumber * _Nullable)eventID MTR_NEWLY_AVAILABLE;
185
+ eventID:(NSNumber * _Nullable)eventID
186
+ API_AVAILABLE (ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ));
182
187
@end
183
188
184
189
@interface MTRBaseDevice : NSObject
@@ -299,7 +304,7 @@ MTR_NEWLY_AVAILABLE
299
304
eventPaths : (NSArray <MTREventRequestPath *> * _Nullable)eventPaths
300
305
params : (MTRReadParams * _Nullable)params
301
306
queue : (dispatch_queue_t )queue
302
- completion : (MTRDeviceResponseHandler)completion MTR_NEWLY_AVAILABLE ;
307
+ completion : (MTRDeviceResponseHandler)completion API_AVAILABLE(ios( 17.0 ), macos( 14.0 ), watchos( 10.0 ), tvos( 17.0 )) ;
303
308
304
309
/* *
305
310
* Write to attribute in a designated attribute path
@@ -418,7 +423,8 @@ MTR_NEWLY_AVAILABLE
418
423
queue : (dispatch_queue_t )queue
419
424
reportHandler : (MTRDeviceResponseHandler)reportHandler
420
425
subscriptionEstablished : (MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
421
- resubscriptionScheduled : (MTRDeviceResubscriptionScheduledHandler _Nullable)resubscriptionScheduled MTR_NEWLY_AVAILABLE;
426
+ resubscriptionScheduled : (MTRDeviceResubscriptionScheduledHandler _Nullable)resubscriptionScheduled
427
+ API_AVAILABLE(ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ));
422
428
423
429
/* *
424
430
* Deregister all local report handlers for a remote device
@@ -466,7 +472,8 @@ MTR_NEWLY_AVAILABLE
466
472
- (void )openCommissioningWindowWithDiscriminator : (NSNumber *)discriminator
467
473
duration : (NSNumber *)duration
468
474
queue : (dispatch_queue_t )queue
469
- completion : (MTRDeviceOpenCommissioningWindowHandler)completion MTR_NEWLY_AVAILABLE;
475
+ completion : (MTRDeviceOpenCommissioningWindowHandler)completion
476
+ API_AVAILABLE(ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ));
470
477
471
478
/* *
472
479
* Reads events from the device.
@@ -633,7 +640,8 @@ API_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4))
633
640
* * The data does not match the known schema.
634
641
*/
635
642
- (nullable instancetype )initWithResponseValue : (NSDictionary <NSString *, id> *)responseValue
636
- error : (NSError * __autoreleasing *)error MTR_NEWLY_AVAILABLE;
643
+ error : (NSError * __autoreleasing *)error
644
+ API_AVAILABLE(ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ));
637
645
638
646
@end
639
647
@@ -706,7 +714,8 @@ typedef NS_ENUM(NSUInteger, MTREventPriority) {
706
714
* * The data does not match the known schema.
707
715
*/
708
716
- (nullable instancetype )initWithResponseValue : (NSDictionary <NSString *, id> *)responseValue
709
- error : (NSError * __autoreleasing *)error MTR_NEWLY_AVAILABLE;
717
+ error : (NSError * __autoreleasing *)error
718
+ API_AVAILABLE(ios(17.0 ), macos(14.0 ), watchos(10.0 ), tvos(17.0 ));
710
719
711
720
@end
712
721
0 commit comments