aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Messaging/Public
diff options
context:
space:
mode:
authorGravatar Chen Liang <chliang@google.com>2018-04-26 11:22:25 -0700
committerGravatar GitHub <noreply@github.com>2018-04-26 11:22:25 -0700
commit1476e2bfe5db393ac3b069c1e12d14f91f6b529b (patch)
tree446a1c25aacbe02b6a43ad3fcc8f511c6d81dfbb /Firebase/Messaging/Public
parenta7b4479bce32c3fc18a0c2e6c59bfd58615f301f (diff)
shouldEstablishDirectChannel cannot be replaced by isDirectChannelEstablished as it represents whether user "should" connect instead of whether user "is" connected (#1190)
shouldEstablishDirectChannel cannot be replaced by isDirectChannelEstablished as it represents whether user "should" connect instead of whether user "is" connected
Diffstat (limited to 'Firebase/Messaging/Public')
-rw-r--r--Firebase/Messaging/Public/FIRMessaging.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Firebase/Messaging/Public/FIRMessaging.h b/Firebase/Messaging/Public/FIRMessaging.h
index 3ad15da..e58a216 100644
--- a/Firebase/Messaging/Public/FIRMessaging.h
+++ b/Firebase/Messaging/Public/FIRMessaging.h
@@ -291,7 +291,12 @@ NS_SWIFT_NAME(Messaging)
* receiving non-APNS, data-only messages in foregrounded apps.
* Default is `NO`.
*/
-@property(nonatomic, assign, getter=isDirectChannelEstablished) BOOL shouldEstablishDirectChannel;
+@property(nonatomic) BOOL shouldEstablishDirectChannel;
+
+/**
+ * Returns `YES` if the direct channel to the FCM server is active, and `NO` otherwise.
+ */
+@property(nonatomic, readonly) BOOL isDirectChannelEstablished;
/**
* FIRMessaging