Package org.mozilla.geckoview
Class RuntimeSettings
Object
org.mozilla.geckoview.RuntimeSettings
- All Implemented Interfaces:
Parcelable
- Direct Known Subclasses:
ContentBlocking.SafeBrowsingProvider,ContentBlocking.Settings,GeckoRuntimeSettings
Base class for (nested) runtime settings.
Handles pref-based settings. Please extend this class when adding nested settings for GeckoRuntimeSettings.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBase class for (nested) runtime settings builders.Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object> -
Field Summary
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate a RuntimeSettings instance with no parent.protectedRuntimeSettings(RuntimeSettings parent) Create settings object. -
Method Summary
Modifier and TypeMethodDescriptionintvoidreadFromParcel(Parcel source) Read settings from a Parcel.protected voidupdatePrefs(RuntimeSettings settings) Update the prefs based on the provided settings.voidwriteToParcel(Parcel out, int flags)
-
Constructor Details
-
RuntimeSettings
protected RuntimeSettings()Create a RuntimeSettings instance with no parent. -
RuntimeSettings
Create settings object.- Parameters:
parent- The parent settings, specify in case of nested settings.
-
-
Method Details
-
updatePrefs
Update the prefs based on the provided settings.- Parameters:
settings- Copy from this settings.
-
describeContents
@AnyThread public int describeContents()- Specified by:
describeContentsin interfaceParcelable
-
writeToParcel
- Specified by:
writeToParcelin interfaceParcelable
-
readFromParcel
Read settings from a Parcel.- Parameters:
source- The Parcel to read from
-