Interface WakeLock.WakeLockJs

All Superinterfaces:
Serializable
Enclosing class:
WakeLock

@JsDefinition public static interface WakeLock.WakeLockJs extends Serializable
What a wake lock asks of its client-side bridge, as a JavaScript definition for Element.executeJs(Class).
Since:
25.4
  • Method Details

    • request

      @JsExpression("return window.Vaadin.Flow.wakeLock.request(this)") PendingJavaScriptResult request()
      Asks the browser to hold the wake lock on behalf of the UI.
      Returns:
      the pending result, which answers with what the browser made of the request
    • release

      @JsExpression("window.Vaadin.Flow.wakeLock.release(this)") PendingJavaScriptResult release()
      Releases the wake lock the browser holds on behalf of the UI.
      Returns:
      the pending result, which completes once the browser has let the lock go