pl.wendigo.chrome.domain.runtime / CallFunctionOnRequest

CallFunctionOnRequest

data class CallFunctionOnRequest (source)

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

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

Constructors

<init>

CallFunctionOnRequest(objectId: RemoteObjectId, functionDeclaration: String, arguments: List<CallArgument>? = null, silent: Boolean? = null, returnByValue: Boolean? = null, generatePreview: Boolean? = null, userGesture: Boolean? = null, awaitPromise: Boolean? = null)

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

Properties

arguments

val arguments: List<CallArgument>?

Call arguments. All call arguments must belong to the same JavaScript world as the target object.

awaitPromise

val awaitPromise: Boolean?

Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error.

functionDeclaration

val functionDeclaration: String

Declaration of the function to call.

generatePreview

val generatePreview: Boolean?

Whether preview should be generated for the result.

objectId

val objectId: RemoteObjectId

Identifier of the object to call function on.

returnByValue

val returnByValue: Boolean?

Whether the result is expected to be a JSON object which should be sent by value.

silent

val silent: Boolean?

In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.

userGesture

val userGesture: Boolean?

Whether execution should be treated as initiated by user in the UI.