SKYLINKConnectionLifeCycleDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | SKYLINKConnection.h SKYLINKProtocol.h |
– connectionDidConnectToRoomSuccessful:
First delegate method called on the delegate upon successful connection.
- (void)connectionDidConnectToRoomSuccessful:(nonnull SKYLINKConnection *)connection
Parameters
connection |
The underlying connection object. |
---|
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:didConnectToRoomFailed:
First delegate method called on the delegate upon unsuccessful connection.
- (void)connection:(nonnull SKYLINKConnection *)connection didConnectToRoomFailed:(null_unspecified NSString *)errorMessage
Parameters
connection |
The underlying connection object. |
---|---|
errorMessage |
Error message in case the connection is unsuccessful. |
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:didLockTheRoom:remotePeerId:
Called when a remote peer locks/unlocks the room.
- (void)connection:(nonnull SKYLINKConnection *)connection didLockTheRoom:(BOOL)lockStatus remotePeerId:(null_unspecified NSString *)remotePeerId
Parameters
connection |
The underlying connection object. |
---|---|
lockStatus |
The status of the lock. |
remotePeerId |
The unique id of the peer who originated the action. |
Declared In
SKYLINKConnection.h
– connection:didReceiveInfoWithSkylinkInfo:
Called when an info is received from the underlying system.
- (void)connection:(nonnull SKYLINKConnection *)connection didReceiveInfoWithSkylinkInfo:(null_unspecified NSDictionary *)skylinkInfo
Parameters
connection |
The underlying connection object. |
---|---|
skylinkInfo |
SkylinkInfo dictionary contains a code and a message from the underlying system. |
Declared In
SKYLINKConnection.h
– connection:didReceiveWarningWithError:
Called when a warning is received from the underlying system.
- (void)connection:(nonnull SKYLINKConnection *)connection didReceiveWarningWithError:(null_unspecified NSError *)error
Parameters
connection |
The underlying connection object. |
---|---|
error |
Error which contain warning message inside userInfo. |
Declared In
SKYLINKConnection.h
– connection:didReceiveError:
Called when a error is received from the underlying system.
- (void)connection:(nonnull SKYLINKConnection *)connection didReceiveError:(null_unspecified NSError *)error
Parameters
connection |
The underlying connection object. |
---|---|
error |
Error from the underlying system. |
Declared In
SKYLINKConnection.h
– connection:didDisconnectFromRoomWithSkylinkEvent:contextDescription:
Called when the client is disconnected from the server.
- (void)connection:(nonnull SKYLINKConnection *)connection didDisconnectFromRoomWithSkylinkEvent:(nullable NSDictionary *)skylinkEvent contextDescription:(nullable NSString *)contextDescription
Parameters
connection |
The underlying connection object. |
---|---|
skylinkEvent |
Is Error/Info. |
contextDescription |
Extra description. |
Declared In
SKYLINKConnection.h