Package android.os

Class PersistableBundle

  • All Implemented Interfaces:
    Parcelable, java.lang.Cloneable

    public final class PersistableBundle
    extends BaseBundle
    implements Parcelable, java.lang.Cloneable
    A simpler variant of Bundle that only contains a few basic types and itself.
    • Constructor Detail

      • PersistableBundle

        public PersistableBundle​(int capacity)
      • PersistableBundle

        public PersistableBundle()
    • Method Detail

      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object
      • getPersistableBundle

        public PersistableBundle getPersistableBundle​(java.lang.String key)
      • putPersistableBundle

        public void putPersistableBundle​(java.lang.String key,
                                         PersistableBundle bundle)
      • describeContents

        public int describeContents()
        Description copied from interface: Parcelable
        Describe the kinds of special objects contained in this Parcelable's marshaled representation.
        Specified by:
        describeContents in interface Parcelable
        Returns:
        Bitmask of CONTENTS_* flags.
      • writeToParcel

        public void writeToParcel​(Parcel dest,
                                  int flags)
        Description copied from interface: Parcelable
        Flatten this object in to a Parcel.
        Specified by:
        writeToParcel in interface Parcelable
        Parameters:
        dest - The parcelable to write to.
        flags - Bitmask of PARCELABLE_WRITE_* flags.