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.
/**
* Defines the contract for managing the Wandkit functionality within the native framework.
*/
interface WandKit {
/**
* Sets up the WandKit with the specified context and edition.
* @param context The Android context required for initialization.
* @param edition The edition of Nativeblocks being used.
* @param instanceName The name of Nativeblocks instance being used.
*/
fun setup(context: Context, edition: NativeblocksEdition, instanceName: String)
/**
* Cleans up and releases any resources used by the WandKit.
*/
fun destroy()
}
Methods
setup
Initializes Wandkit for your Nativeblocks workflow, providing context, edition, and instance naming.
fun setup(
context: Context,
edition: NativeblocksEdition,
instanceName: String
)
Parameters
- context: The Android context required for initialization.
- edition: The edition of Nativeblocks being used.
- instanceName: The unique name of the Nativeblocks instance being set up.
destroy
Releases any resources and unregisters activities used by Wandkit.
fun destroy()
Returns
Nothing; this call is for cleanup purposes only.