CallFunctionOnRequest

data class CallFunctionOnRequest(functionDeclaration: String, objectId: RemoteObjectId?, arguments: List<CallArgument>?, silent: Boolean?, returnByValue: Boolean?, generatePreview: Boolean?, userGesture: Boolean?, awaitPromise: Boolean?, executionContextId: ExecutionContextId?, objectGroup: String?)

Represents request frame that can be used with Runtime#callFunctionOn operation call.

Calls function with given declaration on the given object. Object group of the result is inherited from the target object.

See also

Constructors

CallFunctionOnRequest
Link copied to clipboard
fun CallFunctionOnRequest(functionDeclaration: String, objectId: RemoteObjectId? = null, arguments: List<CallArgument>? = null, silent: Boolean? = null, returnByValue: Boolean? = null, generatePreview: Boolean? = null, userGesture: Boolean? = null, awaitPromise: Boolean? = null, executionContextId: ExecutionContextId? = null, objectGroup: String? = null)

Properties

arguments
Link copied to clipboard
val arguments: List<CallArgument>? = null
Call arguments.
awaitPromise
Link copied to clipboard
val awaitPromise: Boolean? = null
Whether execution should await for resulting value and return once awaited promise is resolved.
executionContextId
Link copied to clipboard
val executionContextId: ExecutionContextId? = null
Specifies execution context which global object will be used to call function on.
functionDeclaration
Link copied to clipboard
val functionDeclaration: String
Declaration of the function to call.
generatePreview
Link copied to clipboard
val generatePreview: Boolean? = null
Whether preview should be generated for the result.
objectGroup
Link copied to clipboard
val objectGroup: String? = null
Symbolic group name that can be used to release multiple objects.
objectId
Link copied to clipboard
val objectId: RemoteObjectId? = null
Identifier of the object to call function on.
returnByValue
Link copied to clipboard
val returnByValue: Boolean? = null
Whether the result is expected to be a JSON object which should be sent by value.
silent
Link copied to clipboard
val silent: Boolean? = null
In silent mode exceptions thrown during evaluation are not reported and do not pause execution.
userGesture
Link copied to clipboard
val userGesture: Boolean? = null
Whether execution should be treated as initiated by user in the UI.

Sources

jvm source
Link copied to clipboard