SKYLINKConnectionLifeCycleDelegate Protocol Reference

Conforms to NSObject
Declared in SKYLINKConnection.h

Overview

The delegate to receive events related to the lifecycle of the connection.

– connection:didConnectWithMessage:success:

First message sent to the delegate upon successful or unsuccessful connection.

- (void)connection:(SKYLINKConnection *)connection didConnectWithMessage:(NSString *)errorMessage success:(BOOL)isSuccess

Parameters

connection

The underlying connection object.

errorMessage

Error message in case the connection is unsuccessful.

isSuccess

Flag to specify whether the connection was successful.

Declared In

SKYLINKConnection.h

– connection:didRenderUserVideo:

Upon successful capturing and rendering of the local front camera.

- (void)connection:(SKYLINKConnection *)connection didRenderUserVideo:(UIView *)userVideoView

Parameters

connection

The underlying connection object.

userVideoView

The video view of the connecting client.

Declared In

SKYLINKConnection.h

– connection:didLockTheRoom:peerId:

When a remote peer locks/unlocks the room.

- (void)connection:(SKYLINKConnection *)connection didLockTheRoom:(BOOL)lockStatus peerId:(NSString *)peerId

Parameters

connection

The underlying connection object.

lockStatus

The status of the lock.

peerId

The unique id of the peer who originated the action.

Declared In

SKYLINKConnection.h

– connection:didReceiveWarning:

When a warning is received from the underlying system.

- (void)connection:(SKYLINKConnection *)connection didReceiveWarning:(NSString *)message

Parameters

connection

The underlying connection object.

message

Warning message from the underlying system.

Declared In

SKYLINKConnection.h

– connection:didDisconnectWithMessage:

When the client is disconnected from the server.

- (void)connection:(SKYLINKConnection *)connection didDisconnectWithMessage:(NSString *)errorMessage

Parameters

connection

The underlying connection object.

errorMessage

Message specifying the reason of disconnection.

Declared In

SKYLINKConnection.h