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
Modifier and TypeClassDescriptionstatic class
Base 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
ModifierConstructorDescriptionprotected
protected
RuntimeSettings
(RuntimeSettings parent) Create settings object. -
Method Summary
Modifier and TypeMethodDescriptionint
void
readFromParcel
(Parcel source) protected void
updatePrefs
(RuntimeSettings settings) Update the prefs based on the provided settings.void
writeToParcel
(Parcel out, int flags)
-
Constructor Details
-
RuntimeSettings
protected RuntimeSettings() -
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:
describeContents
in interfaceParcelable
-
writeToParcel
- Specified by:
writeToParcel
in interfaceParcelable
-
readFromParcel
-