@@ -59,7 +59,7 @@ typedef NS_ENUM(NSUInteger, MTROptionalQRCodeInfoType) {
59
59
* setters has no effect.
60
60
*/
61
61
MTR_AVAILABLE (ios(16.1 ), macos(13.0 ), watchos(9.1 ), tvos(16.1 ))
62
- @interface MTROptionalQRCodeInfo : NSObject <NSCopying>
62
+ @interface MTROptionalQRCodeInfo : NSObject /* <NSCopying> (see below) */
63
63
64
64
- (instancetype )initWithTag:(uint8_t )tag stringValue:(NSString *)value MTR_NEWLY_AVAILABLE;
65
65
- (instancetype )initWithTag:(uint8_t )tag int32Value:(int32_t )value MTR_NEWLY_AVAILABLE;
@@ -72,7 +72,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
72
72
* Tags in the range 0x00 - 0x7F are reserved for Matter-defined elements.
73
73
* Vendor-specific elements must have tags in the range 0x80 - 0xFF.
74
74
*/
75
- @property (nonatomic, readonly, assign) uint8_t tagNumber;
75
+ @property (nonatomic, readonly, assign) uint8_t tagNumber MTR_NEWLY_AVAILABLE ;
76
76
77
77
/* *
78
78
* The value held in this extension element,
@@ -88,6 +88,10 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
88
88
89
89
@end
90
90
91
+ MTR_NEWLY_AVAILABLE
92
+ @interface MTROptionalQRCodeInfo () <NSCopying >
93
+ @end
94
+
91
95
/* *
92
96
* A Matter Onboarding Payload.
93
97
*
@@ -100,7 +104,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
100
104
* from the underlying values
101
105
*/
102
106
MTR_AVAILABLE (ios(16.1 ), macos(13.0 ), watchos(9.1 ), tvos(16.1 ))
103
- @interface MTRSetupPayload : NSObject <NSCopying, NSSecureCoding>
107
+ @interface MTRSetupPayload : NSObject <NSSecureCoding> /* also <NSCopying> (see below) */
104
108
105
109
/* *
106
110
* Initializes the payload object from the provide QR Code or Manual Pairing Code string.
@@ -153,23 +157,23 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
153
157
/* *
154
158
* The list of Manufacturer-specific extension elements contained in the setup code. May be empty.
155
159
*/
156
- @property (nonatomic, readonly, copy) NSArray <MTROptionalQRCodeInfo *> * vendorElements;
160
+ @property (nonatomic, readonly, copy) NSArray <MTROptionalQRCodeInfo *> * vendorElements MTR_NEWLY_AVAILABLE ;
157
161
158
162
/* *
159
163
Returns the Manufacturer-specific extension element with the specified tag, if any.
160
164
*/
161
- - (nullable MTROptionalQRCodeInfo *)vendorElementWithTag:(uint8_t )tag;
165
+ - (nullable MTROptionalQRCodeInfo *)vendorElementWithTag:(uint8_t )tag MTR_NEWLY_AVAILABLE ;
162
166
163
167
/* *
164
168
* Removes the extension element with the specified tag, if any.
165
169
*/
166
- - (void )removeVendorElementWithTag:(uint8_t )tag;
170
+ - (void )removeVendorElementWithTag:(uint8_t )tag MTR_NEWLY_AVAILABLE ;
167
171
168
172
/* *
169
173
* Adds or replaces a Manufacturer-specific extension element.
170
174
* The element must have a tag in the vendor-specific range (0x80 - 0xFF).
171
175
*/
172
- - (void )addOrReplaceVendorElement:(MTROptionalQRCodeInfo *)element;
176
+ - (void )addOrReplaceVendorElement:(MTROptionalQRCodeInfo *)element MTR_NEWLY_AVAILABLE ;
173
177
174
178
/* *
175
179
* Generate a random Matter-valid setup PIN.
@@ -215,6 +219,10 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
215
219
216
220
@end
217
221
222
+ MTR_NEWLY_AVAILABLE
223
+ @interface MTRSetupPayload () <NSCopying >
224
+ @end
225
+
218
226
@interface MTROptionalQRCodeInfo (Deprecated)
219
227
220
228
- (instancetype )init MTR_NEWLY_DEPRECATED(" Please use -initWithTag:...value:" );
0 commit comments