Session

@available(iOS 12.0, *)
@objc(BDKSession)
public class Session : NSObject

An object representing the session of user in the Kaleyra Video SDK.

You create a Session object when you want the Kaleyra Video SDK to connect to the Kaleyra Video platform. You are required to provide the userId of the user you want to connect to Kaleyra Video and a component conforming to the AccessTokenProvider protocol the SDK will use when it needs an access token for the user. If you want to be informed of Session state changes you can provide an object conforming to the SessionObserver protocol in the object initialiser.