Interface: JavaScriptBridge
CloudControl Pro 9 Docs / ui/web / JavaScriptBridge
Interface: JavaScriptBridge
ui/web.JavaScriptBridge
Hierarchy
-
unknown
↳
JavaScriptBridge
Table of contents
Methods
Methods
eval
▸ eval(code
): Promise
<any
>
Parameters
Name | Type |
---|---|
code |
string |
Returns
Promise
<any
>
handle
▸ handle(action
, handler
): JavaScriptBridge
Parameters
Name | Type |
---|---|
action |
undefined | null | string |
handler |
InvokeRequestHandler |
Returns
invoke
▸ invoke(channel
, ...args
): Promise
<any
>
Parameters
Name | Type |
---|---|
channel |
string |
...args |
any |
Returns
Promise
<any
>
on
▸ on(event
, listener
): JavaScriptBridge
Parameters
Name | Type |
---|---|
event |
string |
listener |
(event : IPCEvent , ...args : any ) => void |
Returns
send
▸ send(event
, ...args
): void
Parameters
Name | Type |
---|---|
event |
string |
...args |
any |
Returns
void