Diffusion Apple API  5.9.24
Unified Client Library for iOS, OS X and tvOS
 All Classes Functions Variables Properties Pages
Class Methods | Properties | Instance Methods | List of all members
PTDiffusionSendOptions Class Reference

Introduction

Send options are associated with sending content.

See Also
PTDiffusionMessagingFeature
Since
5.6
Inheritance diagram for PTDiffusionSendOptions:
PTDiffusionMutableSendOptions

Class Methods

(instancetype) + sendOptionsWithHeaders:priority:
 
(instancetype) + sendOptionsWithHeaders:
 
(instancetype) + sendOptionsWithPriority:
 

Properties

NSArray< NSString * > * headers
 
PTDiffusionSendDeliveryPriority priority
 

Instance Methods

(instancetype) - init
 
(instancetype) - initWithHeaders:priority:
 
(BOOL) - isEqualToSendOptions:
 

Method Documentation

- (instancetype) init

Returns a send options object initialized with empty headers and a Normal delivery priority.

Since
5.6
- (instancetype) initWithHeaders: (NSArray< NSString * > *)  headers
priority: (PTDiffusionSendDeliveryPriority)  priority 

Returns a send options object initialized with the given headers and priority.

Parameters
headersThe headers to send. This array may be empty.
priorityThe delivery priority to send with.
Since
5.6
- (BOOL) isEqualToSendOptions: (nullable PTDiffusionSendOptions *)  sendOptions

Compares the receiver to the given send options.

Parameters
sendOptionsThe send options object with which to compare the receiver.
Returns
YES if the send options is equal to the receiver, otherwise NO.
Since
5.6
+ (instancetype) sendOptionsWithHeaders: (NSArray< NSString * > *)  headers

Returns a send options object with the given headers and a Normal delivery priority.

Parameters
headersThe headers to send. This array may be empty.
Since
5.6
+ (instancetype) sendOptionsWithHeaders: (NSArray< NSString * > *)  headers
priority: (PTDiffusionSendDeliveryPriority)  priority 

Returns a send options object with the given headers and priority.

Parameters
headersThe headers to send. This array may be empty.
priorityThe delivery priority to send with.
Since
5.6
+ (instancetype) sendOptionsWithPriority: (PTDiffusionSendDeliveryPriority)  priority

Returns a send options object with the given priority and empty headers.

Parameters
priorityThe delivery priority to send with.
Since
5.6

Property Documentation

- (NSArray<NSString *>*) headers
readnonatomiccopy

The headers to send. If there are no headers then this array may be empty.

Since
5.6
- (PTDiffusionSendDeliveryPriority) priority
readnonatomicassign

The delivery priority to send with.

Since
5.6