ContextBridge

external interface ContextBridge(source)

Functions

Link copied to clipboard
abstract 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 fun exposeInIsolatedWorld(worldId: Double, apiKey: String, api: Any?)
Link copied to clipboard
abstract fun exposeInMainWorld(apiKey: String, api: Any?)