Class WebNotificationAction

Object
org.mozilla.geckoview.WebNotificationAction
All Implemented Interfaces:
Parcelable

public class WebNotificationAction extends Object implements Parcelable
This class corresponds to nsIAlertAction in Gecko, which again largely corresponds to each member of Notification.actions. It's passed to WebNotification and can be retrieved from it.
  • Field Details

    • name

      @NonNull public final String name
      The name of the notification action.
    • title

      @NonNull public final String title
      The title of the notification action.
    • CREATOR

      public static final Parcelable.Creator<WebNotificationAction> CREATOR
      Parcelable creator for WebNotificationAction instances.
  • Constructor Details

    • WebNotificationAction

      public WebNotificationAction(@NonNull String name, @NonNull String title)
      Constructs a WebNotificationAction with the specified name and title.
      Parameters:
      name - The name of the notification action.
      title - The title of the notification action.
  • Method Details