Interface: IMiniappHandle
Defined in: src/types/runtime.ts:163
Handle returned by IRuntime.load. Represents a miniapp that has been loaded (iframe created, manifest resolved) but not yet bootstrapped.
Call bootstrap() to inject context and start the miniapp, or unload() to discard it.
Properties
sid
sid:
string
Defined in: src/types/runtime.ts:171
Session ID for this miniapp instance
Methods
bootstrap()
bootstrap(
context?):Promise<IMiniappControls>
Defined in: src/types/runtime.ts:165
Bootstrap the miniapp with context
Parameters
context?
Partial<IBootstrapContext>
Returns
Promise<IMiniappControls>
unload()
unload():
void
Defined in: src/types/runtime.ts:168
Unload the miniapp and clean up
Returns
void