Example usage for Java android.os PersistableBundle fields, constructors, methods, implement or subclass
The text is from its open source code.
PersistableBundle() Constructs a new, empty PersistableBundle. | |
PersistableBundle(int capacity) Constructs a new, empty PersistableBundle sized to hold the given number of elements. | |
PersistableBundle(PersistableBundle b) Constructs a PersistableBundle containing a copy of the mappings from the given PersistableBundle. | |
PersistableBundle(Bundle b) Constructs a PersistableBundle from a Bundle. | |
PersistableBundle(ArrayMap Constructs a PersistableBundle containing the mappings passed in. | |
PersistableBundle(boolean doInit) Constructs a PersistableBundle without initializing it. |
Object | get(String key) Returns the entry with the given key as an object. |
boolean | getBoolean(String key) Returns the value associated with the given key, or false if no mapping of the desired type exists for the given key. |
int | getInt(String key, int defaultValue) Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key. |
int | getInt(String key) Returns the value associated with the given key, or 0 if no mapping of the desired type exists for the given key. |
long | getLong(String key) Returns the value associated with the given key, or 0L if no mapping of the desired type exists for the given key. |
String | getString(@Nullable String key) Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key. |
Set | keySet() Returns a Set containing the Strings used as keys in this Bundle. |
void | putBoolean(@Nullable String key, boolean value) Inserts a Boolean value into the mapping of this Bundle, replacing any existing value for the given key. |
void | putBooleanArray(@Nullable String key, @Nullable boolean[] value) Inserts a boolean array value into the mapping of this Bundle, replacing any existing value for the given key. |
void | putDouble(@Nullable String key, double value) Inserts a double value into the mapping of this Bundle, replacing any existing value for the given key. |
void | putDoubleArray(@Nullable String key, @Nullable double[] value) Inserts a double array value into the mapping of this Bundle, replacing any existing value for the given key. |
void | putInt(@Nullable String key, int value) Inserts an int value into the mapping of this Bundle, replacing any existing value for the given key. |
void | putIntArray(@Nullable String key, @Nullable int[] value) Inserts an int array value into the mapping of this Bundle, replacing any existing value for the given key. |
void | putLong(@Nullable String key, long value) Inserts a long value into the mapping of this Bundle, replacing any existing value for the given key. |
void | putLongArray(@Nullable String key, @Nullable long[] value) Inserts a long array value into the mapping of this Bundle, replacing any existing value for the given key. |
void | putPersistableBundle(@Nullable String key, @Nullable PersistableBundle value) Inserts a PersistableBundle value into the mapping of this Bundle, replacing any existing value for the given key. |
void | putString(@Nullable String key, @Nullable String value) Inserts a String value into the mapping of this Bundle, replacing any existing value for the given key. |
void | putStringArray(@Nullable String key, @Nullable String[] value) Inserts a String array value into the mapping of this Bundle, replacing any existing value for the given key. |
int | size() Returns the number of mappings contained in this Bundle. |