Class WebExtension.BrowsingDataDelegate.Settings

Object
org.mozilla.geckoview.WebExtension.BrowsingDataDelegate.Settings
Enclosing interface:
WebExtension.BrowsingDataDelegate

@UiThread public static class WebExtension.BrowsingDataDelegate.Settings extends Object
This class represents the current default settings for the "Clear Data" functionality in the browser.

See also: WebExtensions/API/browsingData/settings

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final long
    Data types currently selected in the browser's "Clear Data" UI.
    final int
    Currently selected setting in the browser's "Clear Data" UI for how far back in time to remove data given in milliseconds since the UNIX epoch.
    final long
    Data types that can be toggled in the browser's "Clear Data" UI.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Settings(int since, long toggleableTypes, long selectedTypes)
    Creates an instance of Settings.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • sinceUnixTimestamp

      public final int sinceUnixTimestamp
      Currently selected setting in the browser's "Clear Data" UI for how far back in time to remove data given in milliseconds since the UNIX epoch.
    • toggleableTypes

      public final long toggleableTypes
      Data types that can be toggled in the browser's "Clear Data" UI. One or more flags from WebExtension.BrowsingDataDelegate.Type.
    • selectedTypes

      public final long selectedTypes
      Data types currently selected in the browser's "Clear Data" UI. One or more flags from WebExtension.BrowsingDataDelegate.Type.
  • Constructor Details

    • Settings

      @UiThread public Settings(int since, long toggleableTypes, long selectedTypes)
      Creates an instance of Settings.

      This class represents the current default settings for the "Clear Data" functionality in the browser.

      Parameters:
      since - Currently selected setting in the browser's "Clear Data" UI for how far back in time to remove data given in milliseconds since the UNIX epoch.
      toggleableTypes - Data types that can be toggled in the browser's "Clear Data" UI. One or more flags from WebExtension.BrowsingDataDelegate.Type.
      selectedTypes - Data types currently selected in the browser's "Clear Data" UI. One or more flags from WebExtension.BrowsingDataDelegate.Type.