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

js.web.serviceworker.SyncManager Maven / Gradle / Ivy

package js.web.serviceworker;

import js.lang.Any;
import js.lang.JsString;
import js.lang.Promise;
import js.lang.VoidPromise;
import js.util.collections.Array;
import org.teavm.jso.JSBody;

/**
 * This ServiceWorker API interface provides an interface for registering and listing sync registrations.
 */
public interface SyncManager extends Any {
    @JSBody(script = "return SyncManager.prototype")
    static SyncManager prototype() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(script = "return new SyncManager()")
    static SyncManager create() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    Promise> getTags();

    VoidPromise register(String tag);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy