SOSSessionViewController Protocol Reference

Conforms to NSObject
Declared in SOSSessionBaseViewController.h

Overview

Protocol which defines properties and methods which are required for all view controllers which will accommodate the role for screen sharing in SOS.

Notifications

– reconnectingNotification

Message from the backend that the session is attempting to reconnect. You may receive this message in the event that the session is attempting to recover from a network disconnection or in the event of backgrounding the application or after receiving a phone call.

- (void)reconnectingNotification

Discussion

This method allows your implementation to present a custom message for this event. This is entirely optional as no input is required from the user.

Declared In

SOSSessionBaseViewController.h

– reconnectionCompleteNotification

Message from the backend that the session has successfully reconnected.

- (void)reconnectionCompleteNotification

Discussion

This method allows your implementation to present a custom message for this event. This is entirely optional as no input is required from the user.

Declared In

SOSSessionBaseViewController.h

– agentPausedConnectionNotification:

Message from the backend that the agent has paused/unpaused their connection. This method will be executed any time the agent pause state has changed.

- (void)agentPausedConnectionNotification:(BOOL)paused

Parameters

paused

The current agent paused state. YES means that the agent is currently pausing their connection.

Declared In

SOSSessionBaseViewController.h

– networkStatusUpdateNotification:

Message from the backend that the network connection status has changed. The status is determined by bandwidth tests which are conducted during an SOS session. When the status changes you will receive this method with the current network status.

- (void)networkStatusUpdateNotification:(SOSNetworkStatus)networkStatus

Parameters

networkStatus

The current network status.

Declared In

SOSSessionBaseViewController.h

– reconectStatusUpdateNotification:

Message from the backend that the WebRTC provider has changed the reconnect status. The status message is determined by signals from the WebRTC provider. When the status changes, you will receive this method with the current reconnect status.

- (void)reconectStatusUpdateNotification:(SOSReconnectStatus)reconnectStatus

Parameters

reconnectStatus

The current network reconnect status.

Declared In

SOSSessionBaseViewController.h