Diffusion Apple API 6.12.0
Unified Client Library for iOS, tvOS and OS X / macOS
Loading...
Searching...
No Matches
PTDiffusionSessionStateChange Class Reference

A session state change represents a change in a session's state. More...

#include <PTDiffusionSessionStateChange.h>

Inheritance diagram for PTDiffusionSessionStateChange:

Instance Methods

(BOOL) - isEqualToSessionStateChange:

Properties

PTDiffusionSessionStatepreviousState
PTDiffusionSessionStatestate

(Note that these are not member symbols.)

NSString *const PTDiffusionSessionStateDidChangeNotification
 The name used for session state change notifications.
NSString *const PTDiffusionSessionStateChangeUserInfoKey

Detailed Description

A session state change represents a change in a session's state.

A session state change object is immutable.

The Quick Start guide provides an example of observing session state changes broadcast through the default notification center.

See also
PTDiffusionSession
Since
5.6

Method Documentation

◆ isEqualToSessionStateChange:

- (BOOL) isEqualToSessionStateChange: (nullable PTDiffusionSessionStateChange *) sessionStateChange

Compares the receiver to the given session state change.

Parameters
sessionStateChangeThe session state change object with which to compare the receiver.
Returns
YES if the given session state change is equal to the receiver, otherwise NO.
Since
5.6

◆ PTDiffusionSessionStateChangeUserInfoKey

- (NSString* const) PTDiffusionSessionStateChangeUserInfoKey
related

The notification userInfo dictionary key used to access the PTDiffusionSessionStateChange object on receipt of a PTDiffusionSessionStateDidChangeNotification.

See also
PTDiffusionSessionStateDidChangeNotification
Since
5.6

Property Documentation

◆ previousState

- (PTDiffusionSessionState*) previousState
readnonatomicassign

The previous state. This is the state that the session was in prior to transitioning to its current state.

Since
5.6

◆ state

- (PTDiffusionSessionState*) state
readnonatomicassign

The current state. This is the state that the session has now transitioned to.

Since
5.6