Package org.mozilla.geckoview
Interface GeckoRuntime.ServiceWorkerDelegate
- Enclosing class:
- GeckoRuntime
@UiThread
public static interface GeckoRuntime.ServiceWorkerDelegate
Delegate for handling service worker events and requests.
-
Method Summary
Modifier and TypeMethodDescriptiononOpenWindow(String url) This is called when a service worker tries to open a new window using client.openWindow() The GeckoView application should provide an openGeckoSessionto open the url.
-
Method Details
-
onOpenWindow
This is called when a service worker tries to open a new window using client.openWindow() The GeckoView application should provide an openGeckoSessionto open the url.- Parameters:
url- Url which the Service Worker wishes to open in a new window.- Returns:
- New or existing open
GeckoSessionin which to open the requested url. - See Also:
-