Class
LiveKit
@objc
public class LiveKit: NSObject
The open source platform for real-time communication.
See LiveKit's Online Docs for more information.
Comments are written in DocC compatible format. With Xcode 13 and above you can build documentation right into your Xcode documentation viewer by chosing Product > Build Documentation from Xcode's menu.
Download the Multiplatform SwiftUI Example to try out the features.
Relationships
Conforms To
NSObject
Properties
onShouldConfigureAudioSession
@available(*, deprecated, message: "Use AudioManager.shared.customConfigureFunc instead")
public static var onShouldConfigureAudioSession: ShouldConfigureAudioSessionFunc?
Called when audio session configuration is suggested by the SDK.
By default, defaultShouldConfigureAudioSessionFunc(newState:oldState:)
is used and this
will be handled automatically.
To change the default behavior, set this to your own ShouldConfigureAudioSessionFunc
function and call
configureAudioSession(_:setActive:)
with your own configuration.
View defaultShouldConfigureAudioSessionFunc(newState:oldState:)
for the default implementation.
version
@objc(sdkVersion)
public static let version = "1.0.13"
Methods
connect(_:_:delegate:connectOptions:roomOptions:)
@available(*, deprecated, message: "Use Room.connect() instead, protocol v8 and higher do not support this method")
public static func connect(
_ url: String,
_ token: String,
delegate: RoomDelegate? = nil,
connectOptions: ConnectOptions = ConnectOptions(),
roomOptions: RoomOptions = RoomOptions()) -> Promise<Room>
setLoggerStandardOutput()
@objc
public static func setLoggerStandardOutput()