elemental2.dom.NotificationCenter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elemental2-dom Show documentation
Show all versions of elemental2-dom Show documentation
Thin Java abstractions for the native Browser APIs.
package elemental2.dom;
import elemental2.core.Function;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
@Deprecated
public class NotificationCenter {
public native double checkPermission();
public native Notification createHTMLNotification(String url);
public native Notification createNotification(String iconUrl, String title, String body);
public native void requestPermission();
public native void requestPermission(Function callback);
}