AWSPushTopic Class Reference

Inherits from NSObject
Declared in AWSPushManager.h
AWSPushManager.m

Overview

A topic object.

– initWithTopicARN:pushManager:

Initializes the topic object with a given topic ARN.

- (instancetype)initWithTopicARN:(NSString *)topicARN pushManager:(AWSPushManager *)pushManager

Parameters

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 *topicARN

Declared In

AWSPushManager.h

  topicName

The topic name.

@property (nonatomic, readonly) NSString *topicName

Declared In

AWSPushManager.h

  subscribed

Indicates if the device is registered for the topic.

@property (nonatomic, readonly, getter=isSubscribed) BOOL subscribed

Declared In

AWSPushManager.h

  subscriptionARN

The subscription ARN from Amazon SNS.

@property (nonatomic, readonly, nullable) NSString *subscriptionARN

Declared In

AWSPushManager.h

– subscribe

Subscribes the device to the topic.

- (void)subscribe

Discussion

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)unsubscribe

Discussion

On success, it calls - topicDidUnsubscribe: from AWSPushTopicDelegate. On failure, it calls topic:didFailToUnsubscribeWithError: from AWSPushTopicDelegate.

Declared In

AWSPushManager.h