Android PersistableBundle Introduction.


A PersistableBundle is a type of Bundle that maps Strings to types types that can be saved and later restored.

PersistableBundle definition

PersistableBundle, like Bundle resides in the android.os package:

package android.os;

It was added back in android API level 21.

Persistable class is a final class:

public final class PersistableBundle..{}

so you cannot derive from it.

Like the Bundle class it derives from BaseBundle:

public final class PersistableBundle extends BaseBundle..{}

So it inherits a whole bunch of methods for inserting, retrieving, removing entries into the PersistableBundle.

PersistableBundle implements two interfaces:

Interface Description
Cloneable So that it supports cloning.
Parcelable So that it supports writing to and restoration from a parcel.

How do You Feel after reading this?

According to scientists, we humans have 8 primary innate emotions: joy, acceptance, fear, surprise, sadness, disgust, anger, and anticipation. Feel free to tell us how you feel about this article using these emotes or via the comment section. This feedback helps us gauge our progress.

Help me Grow.

I set myself some growth ambitions I desire to achieve by this year's end regarding this website and my youtube channel. Am halfway. Help me reach them by:




Recommendations


What do You Think


Previous Post Next Post