@@ -154,7 +154,7 @@ NS_SWIFT_NAME(MessagingDelegate)
154154// / * Subscribing to any topics.
155155- (void )messaging:(FIRMessaging *)messaging
156156 didReceiveRegistrationToken:(nullable NSString *)fcmToken
157- NS_SWIFT_NAME(messaging(_:didReceiveRegistrationToken:));
157+ NS_SWIFT_NAME(messaging(_:didReceiveRegistrationToken:)) NS_SWIFT_UI_ACTOR ;
158158@end
159159
160160/* *
@@ -174,7 +174,7 @@ NS_SWIFT_NAME(Messaging)
174174/* *
175175 * Delegate to handle FCM token refreshes, and remote data messages received via FCM direct channel.
176176 */
177- @property(nonatomic, weak, nullable) id<FIRMessagingDelegate> delegate;
177+ @property(nonatomic, weak, nullable) id<FIRMessagingDelegate> delegate NS_SWIFT_UI_ACTOR ;
178178
179179/* *
180180 * FIRMessaging
@@ -203,7 +203,7 @@ NS_SWIFT_NAME(Messaging)
203203 * If you would like to set the type of the APNs token, rather than relying on
204204 * automatic detection, see `setAPNSToken(_:type:)`.
205205 */
206- @property(nonatomic, copy, nullable) NSData *APNSToken NS_SWIFT_NAME (apnsToken);
206+ @property(nonatomic, copy, nullable) NSData *APNSToken NS_SWIFT_NAME (apnsToken) NS_SWIFT_UI_ACTOR ;
207207
208208/* *
209209 * Set the APNs token for the application. This token will be used to register
@@ -216,7 +216,7 @@ NS_SWIFT_NAME(Messaging)
216216 * `MessagingAPNSTokenTypeUnknown` to have the type automatically
217217 * detected based on your provisioning profile.
218218 */
219- - (void )setAPNSToken:(NSData *)apnsToken type:(FIRMessagingAPNSTokenType)type;
219+ - (void )setAPNSToken:(NSData *)apnsToken type:(FIRMessagingAPNSTokenType)type NS_SWIFT_UI_ACTOR ;
220220
221221#pragma mark - FCM Tokens
222222
@@ -236,7 +236,7 @@ NS_SWIFT_NAME(Messaging)
236236 * default (for example, because you want to prompt the user before getting a token),
237237 * set `FirebaseMessagingAutoInitEnabled` to NO in your application's Info.plist.
238238 */
239- @property(nonatomic, assign, getter=isAutoInitEnabled) BOOL autoInitEnabled;
239+ @property(nonatomic, assign, getter=isAutoInitEnabled) BOOL autoInitEnabled NS_SWIFT_UI_ACTOR ;
240240
241241/* *
242242 * The FCM registration token is used to identify this device so that FCM can send notifications to
@@ -251,7 +251,8 @@ NS_SWIFT_NAME(Messaging)
251251 * Once you have an FCM registration token, you should send it to your application server, where
252252 * it can be used to send notifications to your device.
253253 */
254- @property(nonatomic, readonly, nullable) NSString *FCMToken NS_SWIFT_NAME (fcmToken);
254+ @property(nonatomic, readonly, nullable) NSString *FCMToken NS_SWIFT_NAME (fcmToken)
255+ NS_SWIFT_UI_ACTOR;
255256
256257/* *
257258 * Asynchronously gets the default FCM registration token.
@@ -263,9 +264,9 @@ NS_SWIFT_NAME(Messaging)
263264 *
264265 * @param completion The completion handler to handle the token request.
265266 */
266-
267- - (void )tokenWithCompletion:( void (^)(NSString *_Nullable token,
268- NSError *_Nullable error))completion ;
267+ - ( void )tokenWithCompletion:
268+ (void (^NS_SWIFT_UI_ACTOR )(NSString *_Nullable token, NSError *_Nullable error))completion
269+ NS_SWIFT_UI_ACTOR ;
269270
270271/* *
271272 * Asynchronously deletes the default FCM registration token.
@@ -275,8 +276,8 @@ NS_SWIFT_NAME(Messaging)
275276 *
276277 * @param completion The completion handler to handle the token deletion.
277278 */
278-
279- - ( void )deleteTokenWithCompletion:( void (^)( NSError *_Nullable error))completion ;
279+ - ( void )deleteTokenWithCompletion:( void (^NS_SWIFT_UI_ACTOR)( NSError *_Nullable error))completion
280+ NS_SWIFT_UI_ACTOR ;
280281
281282/* *
282283 * Retrieves an FCM registration token for a particular Sender ID. This can be used to allow
@@ -298,9 +299,9 @@ NS_SWIFT_NAME(Messaging)
298299 * @param completion The completion handler to handle the token request.
299300 */
300301- (void )retrieveFCMTokenForSenderID:(NSString *)senderID
301- completion:(void (^)(NSString *_Nullable FCMToken,
302- NSError *_Nullable error))completion
303- NS_SWIFT_NAME (retrieveFCMToken(forSenderID:completion:));
302+ completion:(void (^NS_SWIFT_UI_ACTOR )(NSString *_Nullable FCMToken,
303+ NSError *_Nullable error))completion
304+ NS_SWIFT_NAME (retrieveFCMToken(forSenderID:completion:)) NS_SWIFT_UI_ACTOR ;
304305
305306/* *
306307 * Invalidates an FCM token for a particular Sender ID. That Sender ID cannot no longer send
@@ -311,8 +312,8 @@ NS_SWIFT_NAME(Messaging)
311312 * @param completion The completion handler to handle the token deletion.
312313 */
313314- (void )deleteFCMTokenForSenderID:(NSString *)senderID
314- completion:(void (^)(NSError *_Nullable error))completion
315- NS_SWIFT_NAME (deleteFCMToken(forSenderID:completion:));
315+ completion:(void (^NS_SWIFT_UI_ACTOR )(NSError *_Nullable error))completion
316+ NS_SWIFT_NAME (deleteFCMToken(forSenderID:completion:)) NS_SWIFT_UI_ACTOR ;
316317
317318#pragma mark - Topics
318319
@@ -323,7 +324,7 @@ NS_SWIFT_NAME(Messaging)
323324 *
324325 * @param topic The name of the topic, for example, @"sports".
325326 */
326- - (void )subscribeToTopic:(NSString *)topic NS_SWIFT_NAME (subscribe(toTopic:));
327+ - (void )subscribeToTopic:(NSString *)topic NS_SWIFT_NAME (subscribe(toTopic:)) NS_SWIFT_UI_ACTOR ;
327328
328329/* *
329330 * Asynchronously subscribe to the provided topic, retrying on failure. This uses the default FCM
@@ -337,7 +338,8 @@ NS_SWIFT_NAME(Messaging)
337338 * appropriate error object is returned.
338339 */
339340- (void )subscribeToTopic:(nonnull NSString *)topic
340- completion:(void (^_Nullable)(NSError *_Nullable error))completion;
341+ completion:(void (^_Nullable NS_SWIFT_UI_ACTOR)(NSError *_Nullable error))completion
342+ NS_SWIFT_UI_ACTOR;
341343
342344/* *
343345 * Asynchronously unsubscribe from a topic. This uses a FCM Token
@@ -346,7 +348,8 @@ NS_SWIFT_NAME(Messaging)
346348 *
347349 * @param topic The name of the topic, for example @"sports".
348350 */
349- - (void )unsubscribeFromTopic:(NSString *)topic NS_SWIFT_NAME (unsubscribe(fromTopic:));
351+ - (void )unsubscribeFromTopic:(NSString *)topic
352+ NS_SWIFT_NAME (unsubscribe(fromTopic:)) NS_SWIFT_UI_ACTOR;
350353
351354/* *
352355 * Asynchronously unsubscribe from the provided topic, retrying on failure. This uses a FCM Token
@@ -359,7 +362,9 @@ NS_SWIFT_NAME(Messaging)
359362 * appropriate error object is returned.
360363 */
361364- (void )unsubscribeFromTopic:(nonnull NSString *)topic
362- completion:(void (^_Nullable)(NSError *_Nullable error))completion;
365+ completion:
366+ (void (^_Nullable NS_SWIFT_UI_ACTOR)(NSError *_Nullable error))completion
367+ NS_SWIFT_UI_ACTOR;
363368
364369#pragma mark - Analytics
365370
@@ -374,7 +379,7 @@ NS_SWIFT_NAME(Messaging)
374379 *
375380 * @return Information about the downstream message.
376381 */
377- - (FIRMessagingMessageInfo *)appDidReceiveMessage:(NSDictionary *)message;
382+ - (FIRMessagingMessageInfo *)appDidReceiveMessage:(NSDictionary *)message NS_SWIFT_UI_ACTOR ;
378383
379384#pragma mark - GDPR
380385/* *
@@ -387,7 +392,8 @@ NS_SWIFT_NAME(Messaging)
387392 * @param completion A completion handler which is invoked when the operation completes. `error ==
388393 * nil` indicates success.
389394 */
390- - (void )deleteDataWithCompletion:(void (^)(NSError *__nullable error))completion;
395+ - (void )deleteDataWithCompletion:(void (^NS_SWIFT_UI_ACTOR)(NSError *__nullable error))completion
396+ NS_SWIFT_UI_ACTOR;
391397
392398@end
393399
0 commit comments