Class
RealtimeSDK
public class RealtimeSDK
The RealtimeSDK class defines the interface to the SDK and allows the application to join a room and provides callback events through the RealtimeSDKProtocol.
Relationships
Nested Types
RealtimeSDK.RoomOptions
Options to be used when joining a room
RealtimeSDK.Settings
Initializers
Properties
Methods
joinRoom(token:options:completionHandler:)
public func joinRoom(token: String, options: RoomOptions?, completionHandler: (RealtimeSDKError?) -> Void)
Join a room using the specified room token and options
Parameters
Name | Type | Description |
---|---|---|
token | String |
String containing authentication token associated with the room |
options | RoomOptions? |
Options used when joining the room |
completionHandler | (RealtimeSDKError?) -> Void |
The completion handler specifies if an error was encountered when joining the room |
subscribeLogEvents(delegate:severity:)
public func subscribeLogEvents(delegate: RealtimeSDKLogProtocol, severity: LogSeverity)
Subscribe to log events generated by the SDK
Parameters
Name | Type | Description |
---|---|---|
delegate | RealtimeSDKLogProtocol |
Object implementing RealtimeSDKLogProtocol |
unsubscribeLogEvents()
public func unsubscribeLogEvents()
Unsubscribe to log events generated by the SDK
setTestFlag(key:value:)
public func setTestFlag(key: String, value: Any)
Private API to set test flags.