Class JavaScript

java.lang.Object
org.schabi.newpipe.extractor.utils.JavaScript

public final class JavaScript extends Object
  • Method Details

    • compileOrThrow

      public static void compileOrThrow(String function)
    • run

      public static String run(String function, String functionName, String... parameters)
    • setExternalJavaScriptInterpreter

      public static void setExternalJavaScriptInterpreter(@Nullable JavaScriptInterpreter javaScriptInterpreter)
      Sets an external JavaScript interpreter, that is used to run JavaScript code.
      Parameters:
      javaScriptInterpreter - the complete JavaScript base player code