Class RuntimeSettings

Object
org.mozilla.geckoview.RuntimeSettings
All Implemented Interfaces:
Parcelable
Direct Known Subclasses:
ContentBlocking.SafeBrowsingProvider, ContentBlocking.Settings, GeckoRuntimeSettings

public abstract class RuntimeSettings extends Object implements Parcelable
Base class for (nested) runtime settings.

Handles pref-based settings. Please extend this class when adding nested settings for GeckoRuntimeSettings.

  • Constructor Details

    • RuntimeSettings

      protected RuntimeSettings()
    • RuntimeSettings

      protected RuntimeSettings(@Nullable RuntimeSettings parent)
      Create settings object.
      Parameters:
      parent - The parent settings, specify in case of nested settings.
  • Method Details

    • updatePrefs

      @AnyThread protected void updatePrefs(@NonNull RuntimeSettings settings)
      Update the prefs based on the provided settings.
      Parameters:
      settings - Copy from this settings.
    • describeContents

      @AnyThread public int describeContents()
      Specified by:
      describeContents in interface Parcelable
    • writeToParcel

      @AnyThread public void writeToParcel(Parcel out, int flags)
      Specified by:
      writeToParcel in interface Parcelable
    • readFromParcel

      @AnyThread public void readFromParcel(@NonNull Parcel source)