Interface WebNotificationDelegate


public interface WebNotificationDelegate
Delegate for handling web notification events.
  • Method Details

    • onShowNotification

      @AnyThread default void onShowNotification(@NonNull WebNotification notification)
      This is called when a new notification is created. The implementations of this should call WebNotification.show or .dismiss, depending on whether the notification is successfully opened or not.
      Parameters:
      notification - The WebNotification received.
    • onCloseNotification

      @AnyThread default void onCloseNotification(@NonNull WebNotification notification)
      This is called when an existing notification is closed. The implementations of this should call WebNotification.dismiss.
      Parameters:
      notification - The WebNotification received.