androidx.javascriptengine


The androidx.javascriptengine library is a static library you can add to your Android application in order to evaluate JavaScript.

Interfaces

JavaScriptConsoleCallback

Can be associated with an isolate to receive and process console messages and events from it.

Classes

IsolateStartupParameters

Class used to set startup parameters for JavaScriptIsolate.

JavaScriptConsoleCallback.ConsoleMessage

Representation of a console message, such as produced by console.log.

JavaScriptIsolate

Environment within a JavaScriptSandbox where JavaScript is executed.

JavaScriptSandbox

Sandbox that provides APIs for JavaScript evaluation in a restricted environment.

TerminationInfo

Information about how and why an isolate has terminated.

Exceptions

DataInputException

Indicates that streaming JavaScript code into the JS evaluation environment has failed.

EvaluationFailedException

Indicates that an evaluation failed due to a syntax error or exception produced by the script.

EvaluationResultSizeLimitExceededException

Indicates that a JavaScriptIsolate's evaluation failed due to it returning an oversized result.

IsolateTerminatedException

Exception produced when evaluation is terminated due to the JavaScriptIsolate being closed or due to some crash.

JavaScriptException

Super class for all asynchronous exceptions produced by evaluateJavaScriptAsync.

MemoryLimitExceededException

Indicates that a JavaScriptIsolate's evaluation failed due to the isolate exceeding its heap size limit.

SandboxDeadException

Exception thrown when evaluation is terminated due the JavaScriptSandbox being dead.

SandboxUnsupportedException

Exception thrown when attempting to create a JavaScriptSandbox via createConnectedInstanceAsync when doing so is not supported.