Class WebExtension.PermissionPromptResponse

Object
org.mozilla.geckoview.WebExtension.PermissionPromptResponse
Enclosing class:
WebExtension

public static class WebExtension.PermissionPromptResponse extends Object
Holds all the information which the user has submited as part of a confirmation of a permissions prompt request.
  • Field Details

    • isPermissionsGranted

      @Nullable public final Boolean isPermissionsGranted
      Whether the user granted permissions or not.
    • isPrivateModeGranted

      @Nullable public final Boolean isPrivateModeGranted
      Whether the user granted access in private mode or not.
    • isTechnicalAndInteractionDataGranted

      @Nullable public final Boolean isTechnicalAndInteractionDataGranted
      Whether the user granted access to technical and interaction data collection.
  • Constructor Details

    • PermissionPromptResponse

      @Deprecated @DeprecationSchedule(id="web-extension-permission-prompt-response", version=143) public PermissionPromptResponse(@Nullable Boolean isPermissionsGranted, @Nullable Boolean isPrivateModeGranted)
      Deprecated.
      Creates a new PermissionPromptResponse with the given fields.
      Parameters:
      isPermissionsGranted - Whether the user granted permissions or not.
      isPrivateModeGranted - Whether the user granted access in private mode or not.
    • PermissionPromptResponse

      public PermissionPromptResponse(Boolean isPermissionsGranted, Boolean isPrivateModeGranted, Boolean isTechnicalAndInteractionDataGranted)
      Creates a new PermissionPromptResponse with the given fields.
      Parameters:
      isPermissionsGranted - Whether the user granted permissions or not.
      isPrivateModeGranted - Whether the user granted access in private mode or not.
      isTechnicalAndInteractionDataGranted - Whether the user granted access to technical and interaction data collection.