IrisRtcConnectionDelegate Protocol Reference

Conforms to NSObject
Declared in IrisRtcConnection.h

Overview

The IrisRtcConnectionDelegate protocol defines the optional methods implemented by delegates of the IrisRtcConnection class.

The delegate onConnected will be called when connection is established with IRIS backend and delegate onDisconnected will be called when connection is disconnected with IRIS backend.

The delegate onError:withAdditionalInfo: will be called whenever any error occured in IrisRtcConnection class.It contains error code and additionalinfo about error.

– onConnected required method

This method is called when the connection is established

- (void)onConnected

Discussion

This method is called when the connection is established

Declared In

IrisRtcConnection.h

– onReconnecting required method

This method is called when the connection is reconnecting

- (void)onReconnecting

Discussion

This method is called when the connection is reconnecting

Declared In

IrisRtcConnection.h

– onDisconnected required method

This method is called when the connection is disconnected

- (void)onDisconnected

Discussion

This method is called when the connection is disconnected

Declared In

IrisRtcConnection.h

– onError:withAdditionalInfo: required method

This method is called when there is an error

- (void)onError:(NSError *)error withAdditionalInfo:(nullable NSDictionary *)info

Parameters

error

The basic error code details

info

Additional details for debugging.

Discussion

This method is called when there is an error

Declared In

IrisRtcConnection.h

– onNotification: required method

This method is called when there is an notification via xmpp

- (void)onNotification:(NSDictionary *)data

Parameters

data

The dictionary containing notification payload

Discussion

This method is called when there is an notification via xmpp

Declared In

IrisRtcConnection.h