ARTPushChannelSubscription
Objective-C
@interface ARTPushChannelSubscription : NSObject
Swift
class ARTPushChannelSubscription : NSObject
Contains the subscriptions of a device, or a group of devices sharing the same clientId, has to a channel in order to receive push notifications.
-
The unique ID of the device.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *deviceId;Swift
var deviceId: String? { get } -
The ID of the client the device, or devices are associated to.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *clientId;Swift
var clientId: String? { get } -
The channel the push notification subscription is for.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull channel;Swift
var channel: String { get } -
Creates an
ARTPushChannelSubscriptionobject for a channel and single device.Declaration
Objective-C
- (nonnull instancetype)initWithDeviceId:(nonnull NSString *)deviceId channel:(nonnull NSString *)channelName;Swift
init(deviceId: String, channel channelName: String)Parameters
deviceIdThe unique ID of the device.
channelNameThe channel name.
Return Value
An
ARTPushChannelSubscriptionobject. -
Creates an
ARTPushChannelSubscriptionobject for a channel and group of devices sharing the sameclientId.Declaration
Objective-C
- (nonnull instancetype)initWithClientId:(nonnull NSString *)clientId channel:(nonnull NSString *)channelName;Swift
init(clientId: String, channel channelName: String)Parameters
clientIdThe ID of the client.
channelNameThe channel name.
Return Value
An
ARTPushChannelSubscriptionobject.