public final class PersistableBundle extends BaseBundle implements Parcelable, Cloneable
Bundle
that only contains a few basic types
and itself.BaseBundle.Type
Parcelable.ClassLoaderCreator<P>, Parcelable.Creator<P>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<PersistableBundle> |
CREATOR |
static PersistableBundle |
EMPTY |
map
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
PersistableBundle() |
PersistableBundle(int capacity) |
PersistableBundle(PersistableBundle bundle) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable's
marshaled representation.
|
PersistableBundle |
getPersistableBundle(String key) |
void |
putPersistableBundle(String key,
PersistableBundle bundle) |
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object in to a Parcel.
|
clear, containsKey, equals, get, get, getBoolean, getBooleanArray, getDouble, getDouble, getDoubleArray, getInt, getInt, getIntArray, getLong, getLong, getLongArray, getString, getString, getStringArray, hashCode, isEmpty, keySet, put, putAll, putBoolean, putBooleanArray, putDouble, putDoubleArray, putInt, putIntArray, putLong, putLongArray, putString, putStringArray, readFromParcel, remove, size, toString, writeToParcel
public static final Parcelable.Creator<PersistableBundle> CREATOR
public static final PersistableBundle EMPTY
public PersistableBundle(int capacity)
public PersistableBundle()
public PersistableBundle(PersistableBundle bundle)
public PersistableBundle getPersistableBundle(String key)
public void putPersistableBundle(String key, PersistableBundle bundle)
public int describeContents()
Parcelable
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
Parcelable
writeToParcel
in interface Parcelable
dest
- The parcelable to write to.flags
- Bitmask of PARCELABLE_WRITE_* flags.Copyright © 2018. All rights reserved.