⌘K

Wandkit

Wandkit manages core server-driven UI and lifecycle operations for Nativeblocks. This protocol (interface) defines how to set up and clean up Wandkit, ensuring stable initialization, configuration, and release of resources.


public protocol WandKit {
    /// Sets up the Wandkit instance with the specified edition and instance name.
    /// - Parameter edition: The `NativeblocksEdition` that determines the configuration type, such as cloud or community.
    /// - Parameter instanceName: The unique name for the Wandkit instance.
    func setup(edition: NativeblocksEdition, instanceName: String)

    /// Destroys the Wandkit instance and releases all associated resources.
    func destroy()
}

Requirements

setup(edition:instanceName:)

Sets up the Wandkit instance with the specified edition and a unique instance name.

func setup(edition: NativeblocksEdition, instanceName: String)
Parameters
  • edition: The NativeblocksEdition that determines the configuration type, such as cloud or community.
  • instanceName: The unique string to identify the Wandkit instance.

destroy()

Destroys the Wandkit instance and releases all associated resources.

func destroy()