⌘K

LiveKit

LiveKit is a component of the Wandkit framework that provides functionalities such as keeping the screen active and auto-connecting to the environment. It is specifically designed to work with the Nativeblocks Studio environment.


LiveKit

public struct LiveKit: WandKit 

Inheritance

Wandkit

Initializers

Initializes the LiveKit module with configurable options.

public init(
        keepScreenOn: Bool = true,
        autoConnect: Bool = true
    ) 
Parameters
  • keepScreenOn: A flag to keep the screen active (default: true).
  • autoConnect: A flag to enable automatic connection (default: true).

Methods

destroy

Destroys the LiveKit instance and cleans up resources.

public func destroy() 

Sample Usage


NativeblocksManager.initialize()

#if DEBUG
    _ = NativeblocksManager.getInstance().wandKit(
        LiveKit(
            keepScreenOn: true,
            autoConnect: true
        )
    )
#endif