SKYLINKConnectionRemotePeerDelegate Protocol Reference

Conforms to NSObject
Declared in SKYLINKConnection.h

Overview

Delegate methods are called on the main thread.

– connection:didJoinPeer:mediaProperties:peerId:

Called when a remote peer joins the room.

- (void)connection:(nonnull SKYLINKConnection *)connection didJoinPeer:(null_unspecified id)userInfo mediaProperties:(null_unspecified SKYLINKPeerMediaProperties *)pmProperties peerId:(null_unspecified NSString *)peerId

Parameters

connection

The underlying connection object.

userInfo

User defined information. May be an NSString, NSDictionary or NSArray.

pmProperties

An object defining peer media properties of the joining peer.

peerId

The unique id of the joining peer.

Declared In

SKYLINKConnection.h

– connection:didRenderPeerVideo:peerId:

Called upon receiving a remote video stream.

- (void)connection:(nonnull SKYLINKConnection *)connection didRenderPeerVideo:(null_unspecified UIView *)peerVideoView peerId:(null_unspecified NSString *)peerId

Parameters

connection

The underlying connection object.

peerVideoView

The video view of the joining peer.

peerId

The unique id of the peer.

Declared In

SKYLINKConnection.h

– connection:didReceiveUserInfo:peerId:

Called upon receiving an update about a user info.

- (void)connection:(nonnull SKYLINKConnection *)connection didReceiveUserInfo:(null_unspecified id)userInfo peerId:(null_unspecified NSString *)peerId

Parameters

connection

The underlying connection object.

userInfo

User defined information. May be an NSString, NSDictionary or NSArray.

peerId

The unique id of the peer.

Declared In

SKYLINKConnection.h

– connection:didLeavePeerWithMessage:peerId:

Called when a peer has left the room implictly or explicitly.

- (void)connection:(nonnull SKYLINKConnection *)connection didLeavePeerWithMessage:(null_unspecified NSString *)errorMessage peerId:(null_unspecified NSString *)peerId

Parameters

connection

The underlying connection object.

errorMessage

Error message in case the peer is left due to some error.

peerId

The unique id of the leaving peer.

Declared In

SKYLINKConnection.h