JavaScriptEngine

Util for evaluating JavaScript in sources.

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard
suspend fun <T> evaluate(script: String): T

Evaluate arbitrary JavaScript code and get the result as a primitive type (e.g., String, Int).