Interface GeckoRuntime.ServiceWorkerDelegate

Enclosing class:
GeckoRuntime

@UiThread public static interface GeckoRuntime.ServiceWorkerDelegate
  • Method Summary

    Modifier and Type
    Method
    Description
    This is called when a service worker tries to open a new window using client.openWindow() The GeckoView application should provide an open GeckoSession to open the url.
  • Method Details

    • onOpenWindow

      @UiThread @NonNull GeckoResult<GeckoSession> onOpenWindow(@NonNull String url)
      This is called when a service worker tries to open a new window using client.openWindow() The GeckoView application should provide an open GeckoSession to open the url.
      Parameters:
      url - Url which the Service Worker wishes to open in a new window.
      Returns:
      New or existing open GeckoSession in which to open the requested url.
      See Also: