From a645c62ca32a794978bcb71ba0f20f6a685baa42 Mon Sep 17 00:00:00 2001 From: Chen Liang Date: Wed, 4 Apr 2018 14:40:53 -0700 Subject: Fix the comments for subscribe to topic (#1026) --- Firebase/Messaging/Public/FIRMessaging.h | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'Firebase/Messaging') diff --git a/Firebase/Messaging/Public/FIRMessaging.h b/Firebase/Messaging/Public/FIRMessaging.h index f56b7ab..d3fdf59 100644 --- a/Firebase/Messaging/Public/FIRMessaging.h +++ b/Firebase/Messaging/Public/FIRMessaging.h @@ -469,13 +469,10 @@ NS_SWIFT_NAME(Messaging) - (void)subscribeToTopic:(nonnull NSString *)topic NS_SWIFT_NAME(subscribe(toTopic:)); /** - * Asynchronously subscribe to the topic. Adds to the pending list of topic operations. - * Retry in case of failures. This makes a repeated attempt to subscribe to the topic - * as compared to the `subscribe` method above which tries once. + * Asynchronously subscribe to the provided topic, retrying on failure. * - * @param topic The topic name to subscribe to. Should be of the form - * `"/topics/"`. - * @param completion The completion that is invoked once the unsubscribe call ends. + * @param topic The topic name to subscribe to, for example, @"sports". + * @param completion The completion that is invoked once the subscribe call ends. * In case of success, nil error is returned. Otherwise, an * appropriate error object is returned. */ @@ -490,12 +487,9 @@ NS_SWIFT_NAME(Messaging) - (void)unsubscribeFromTopic:(nonnull NSString *)topic NS_SWIFT_NAME(unsubscribe(fromTopic:)); /** - * Asynchronously unsubscribe from the topic. Adds to the pending list of topic operations. - * Retry in case of failures. This makes a repeated attempt to unsubscribe from the topic - * as compared to the `unsubscribe` method above which tries once. + * Asynchronously unsubscribe from the provided topic, retrying on failure. * - * @param topic The topic name to unsubscribe from. Should be of the form - * `"/topics/"`. + * @param topic The topic name to unsubscribe from, for example @"sports". * @param completion The completion that is invoked once the unsubscribe call ends. * In case of success, nil error is returned. Otherwise, an * appropriate error object is returned. -- cgit v1.2.3