class RuntimeDomain
(source)
Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.
fun awaitPromise(input: AwaitPromiseRequest): Single<AwaitPromiseResponse>
Add handler to promise with given promise object id. |
|
fun callFunctionOn(input: CallFunctionOnRequest): Single<CallFunctionOnResponse>
Calls function with given declaration on the given object. Object group of the result is inherited from the target object. |
|
fun compileScript(input: CompileScriptRequest): Single<CompileScriptResponse>
Compiles expression. |
|
fun consoleAPICalled(): Flowable<ConsoleAPICalledEvent>
Issued when console API was called. |
|
fun consoleAPICalledTimed(): Flowable<Timed<ConsoleAPICalledEvent>>
Issued when console API was called. |
|
fun disable(): Single<ResponseFrame>
Disables reporting of execution contexts creation. |
|
fun discardConsoleEntries(): Single<ResponseFrame>
Discards collected exceptions and console API calls. |
|
fun enable(): Single<ResponseFrame>
Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context. |
|
fun evaluate(input: EvaluateRequest): Single<EvaluateResponse>
Evaluates expression on global object. |
|
fun events(): Flowable<ProtocolEvent>
Returns flowable capturing all Runtime domains events. |
|
fun exceptionRevoked(): Flowable<ExceptionRevokedEvent>
Issued when unhandled exception was revoked. |
|
fun exceptionRevokedTimed(): Flowable<Timed<ExceptionRevokedEvent>>
Issued when unhandled exception was revoked. |
|
fun exceptionThrown(): Flowable<ExceptionThrownEvent>
Issued when exception was thrown and unhandled. |
|
fun exceptionThrownTimed(): Flowable<Timed<ExceptionThrownEvent>>
Issued when exception was thrown and unhandled. |
|
fun executionContextCreated(): Flowable<ExecutionContextCreatedEvent>
Issued when new execution context is created. |
|
fun executionContextCreatedTimed(): Flowable<Timed<ExecutionContextCreatedEvent>>
Issued when new execution context is created. |
|
fun executionContextDestroyed(): Flowable<ExecutionContextDestroyedEvent>
Issued when execution context is destroyed. |
|
fun executionContextDestroyedTimed(): Flowable<Timed<ExecutionContextDestroyedEvent>>
Issued when execution context is destroyed. |
|
fun executionContextsCleared(): Flowable<ProtocolEvent>
Issued when all executionContexts were cleared in browser |
|
fun executionContextsClearedTimed(): Flowable<Timed<ProtocolEvent>>
Issued when all executionContexts were cleared in browser |
|
fun getProperties(input: GetPropertiesRequest): Single<GetPropertiesResponse>
Returns properties of a given object. Object group of the result is inherited from the target object. |
|
fun inspectRequested(): Flowable<InspectRequestedEvent>
Issued when object should be inspected (for example, as a result of inspect() command line API call). |
|
fun inspectRequestedTimed(): Flowable<Timed<InspectRequestedEvent>>
Issued when object should be inspected (for example, as a result of inspect() command line API call). |
|
fun releaseObject(input: ReleaseObjectRequest): Single<ResponseFrame>
Releases remote object with given id. |
|
fun releaseObjectGroup(input: ReleaseObjectGroupRequest): Single<ResponseFrame>
Releases all remote objects that belong to a given group. |
|
fun runIfWaitingForDebugger(): Single<ResponseFrame>
Tells inspected instance to run if it was waiting for debugger to attach. |
|
fun runScript(input: RunScriptRequest): Single<RunScriptResponse>
Runs script with given id in a given context. |
|
fun setCustomObjectFormatterEnabled(input: SetCustomObjectFormatterEnabledRequest): Single<ResponseFrame> |