SKYLINKConnectionLifeCycleDelegate Protocol Reference

Conforms to NSObject
Declared in SKYLINKConnection.h

Overview

Delegate methods are called on the main thread.

– connection:didConnectWithMessage:success:

First delegate method called on 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.

Discussion

If the connection is successfull, this method gets called just before the connection notifies the other peers in the room that the local user entered it.

Declared In

SKYLINKConnection.h

– connection:didRenderUserVideo:

Called 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:

Called 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:

Called 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:

Called 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