ConnectionDelegate
@objc public protocol ConnectionDelegate: class
The Connection delegate protocol defines the event methods available for channel Connection/DisConnection.
-
event occur when connection occur with channel.
Declaration
Swift
@objc optional func onConnect(_ error: NSError?)Parameters
errorconnection error
-
event occur when Disconnection occur with channel.
Declaration
Swift
@objc optional func onDisconnect(_ error: NSError?)Parameters
errordisconnect error.
-
event occur when other client connects with channel.
Declaration
Swift
@objc optional func onClientConnect(_ client: ChannelClient)Parameters
clientclient info.
-
event occur when other client disconnects with channel.
Declaration
Swift
@objc optional func onClientDisconnect(_ client: ChannelClient)Parameters
clientclient info.
-
event occur when a Channel Error is fired
Declaration
Swift
@objc optional func onError(_ error: NSError)Parameters
errorerror.
-
event occur when the host app is ready to send or receive messages
Declaration
Swift
@objc optional func onReady() -
Called when media player on target device sends
playerNotice
event to client. It may be change of playback status, error message or informative event about video stream state. See MediaPlayer.PlayerNotice definition for possible values.Declaration
Swift
@objc optional func onPlayerNotice(_ messageData: [String : AnyObject])Parameters
messageDatainformation about player events
ConnectionDelegate Protocol Reference