ContextBridge

external interface ContextBridge(source)

Functions

Link copied to clipboard
abstract external fun executeInMainWorld(executionScript: ExecutionScript): Any?

A copy of the resulting value from executing the function in the main world. Refer to the table on how values are copied between worlds.

Link copied to clipboard
abstract external fun exposeInIsolatedWorld(worldId: Double, apiKey: String, api: Any?)
Link copied to clipboard
abstract external fun exposeInMainWorld(apiKey: String, api: Any?)