All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.polymer.platinum.widget.event.ServiceWorkerInstalledEvent Maven / Gradle / Ivy

The newest version!
/*
 * This code was generated with Vaadin Web Component GWT API Generator, 
 * from platinum-sw project by The Polymer Authors
 * that is licensed with http://polymer.github.io/LICENSE.txt license.
 */
package com.vaadin.polymer.platinum.widget.event;

import com.google.gwt.event.dom.client.DomEvent;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.core.client.JavaScriptObject;

/**
 * 

Fired when the initial service worker installation completes successfully.
The service worker will normally only be installed once, the first time a page with a
<platinum-sw-register> element is visited in a given browser. If the same page is visited
again, the existing service worker will be reused, and there won’t be another
service-worker-installed fired.

*/ public class ServiceWorkerInstalledEvent extends DomEvent { public static Type TYPE = new Type( com.vaadin.polymer.platinum.event.ServiceWorkerInstalledEvent.NAME, new ServiceWorkerInstalledEvent()); public ServiceWorkerInstalledEvent() { } public Type getAssociatedType() { return TYPE; } protected void dispatch(ServiceWorkerInstalledEventHandler handler) { handler.onServiceWorkerInstalled(this); } public com.vaadin.polymer.platinum.event.ServiceWorkerInstalledEvent getPolymerEvent() { return (com.vaadin.polymer.platinum.event.ServiceWorkerInstalledEvent)super.getNativeEvent(); } /** *

message indicating that the installation succeeded.

*/ public String getA() { return getPolymerEvent().getDetail().getA(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy