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

Introduction

A receive context provides additional contextual information for received content.

See Also
PTDiffusionMessageStreamDelegate
Deprecated:
Since 6.2. This is only used within one-way messaging, which is also deprecated. This interface will be removed in a future release.
Since
5.6
Inheritance diagram for PTDiffusionReceiveContext:

Class Methods

(instancetype) + NS_UNAVAILABLE
 

Properties

NSArray< NSString * > * headers
 
NSDictionary< NSString
*, NSString * > * 
sessionProperties
 

Instance Methods

(instancetype) - NS_UNAVAILABLE
 
(BOOL) - isEqualToReceiveContext:
 

Method Documentation

- (BOOL) isEqualToReceiveContext: (nullable PTDiffusionReceiveContext *)  receiveContext

Compares the receiver to the given receive context.

Parameters
receiveContextThe receive context object with which to compare the receiver.
Returns
YES if the receive context is equal to the receiver, otherwise NO.
Since
5.6

Property Documentation

- (NSArray<NSString *>*) headers
readnonatomicassign

The headers if there are any.

The array will be empty if there are no headers.

Since
5.6
- (NSDictionary<NSString *, NSString *>*) sessionProperties
readnonatomicassign

The values of any session properties that have been requested to be passed with messages.

The dictionary will be empty if no properties were requested or if properties cannot be delivered to the receiver.

Since
6.0