Diffusion Apple API 6.12.1
Unified Client Library for iOS, tvOS and OS X / macOS
Loading...
Searching...
No Matches
<PTDiffusionSessionStateChangeDelegate> Protocol Reference

The optional delegate for a session which may be used to receive state notifications. More...

#include <PTDiffusionSessionStateChangeDelegate.h>

Instance Methods

(void) - onSession:stateChangeFrom:to:

Detailed Description

The optional delegate for a session which may be used to receive state notifications.

By default a session will not have a listener.

Since
6.11

Method Documentation

◆ onSession:stateChangeFrom:to:

- (void) onSession: (PTDiffusionSession *) session
stateChangeFrom: (PTDiffusionSessionState *) previousState
to: (PTDiffusionSessionState *) state 

Called whenever the state of a session changes.

Parameters
sessionthe session
previousStatethe previous state
statethe current state
Since
6.11