⌘K

Wandkit

Wandkit

Protocol that defines the core behavior for managing Wandkit operations. The Wandkit protocol provides methods to set up and destroy the Wandkit instance, making it suitable for managing the lifecycle of Nativeblocks components.


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()