AWSPushTopic Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | AWSPushManager.h AWSPushManager.m |
– initWithTopicARN:pushManager:
Initializes the topic object with a given topic ARN.
- (instancetype)initWithTopicARN:(NSString *)topicARN pushManager:(AWSPushManager *)pushManagerParameters
topicARN |
A topic ARN from Amazon SNS. |
|---|
Return Value
An initialized instance of PushTopic.
Declared In
AWSPushManager.h
topicARN
The topic ARN.
@property (nonatomic, readonly) NSString *topicARNDeclared In
AWSPushManager.h
topicName
The topic name.
@property (nonatomic, readonly) NSString *topicNameDeclared In
AWSPushManager.h
subscribed
Indicates if the device is registered for the topic.
@property (nonatomic, readonly, getter=isSubscribed) BOOL subscribedDeclared In
AWSPushManager.h
subscriptionARN
The subscription ARN from Amazon SNS.
@property (nonatomic, readonly, nullable) NSString *subscriptionARNDeclared In
AWSPushManager.h
– subscribe
Subscribes the device to the topic.
- (void)subscribeDiscussion
On success, it calls - topicDidSubscribe: from AWSPushTopicDelegate.
On failure, it calls topic:didFailToSubscribeWithError: from AWSPushTopicDelegate.
Declared In
AWSPushManager.h
– unsubscribe
Unsubscribes the device from the topic.
- (void)unsubscribeDiscussion
On success, it calls - topicDidUnsubscribe: from AWSPushTopicDelegate.
On failure, it calls topic:didFailToUnsubscribeWithError: from AWSPushTopicDelegate.
Declared In
AWSPushManager.h