/** * Creates a new {@link WebpushNotification.Builder}. * * @return A {@link WebpushNotification.Builder} instance. */ public static Builder builder() { return new Builder(); }
/** * Creates a new notification with the given title, body and icon. Overrides the options set via * {@link Notification}. * * @param title Title of the notification. * @param body Body of the notification. * @param icon URL to the notifications icon. */ public WebpushNotification(String title, String body, @Nullable String icon) { this(builder().setTitle(title).setBody(body).setIcon(icon)); }