Android Guides | Samples

Android.OS.PersistableBundle Class

A mapping from String values to various types that can be saved to persistent and later restored.

See Also: PersistableBundle

Syntax

[Android.Runtime.Register("android/os/PersistableBundle", DoNotGenerateAcw=true)]
public sealed class PersistableBundle : BaseBundle, IParcelable, ICloneable, IDisposable

Remarks

A mapping from String values to various types that can be saved to persistent and later restored.

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.OS.PersistableBundle are listed below.

See Also: BaseBundle

Public Constructors

Constructs a new, empty PersistableBundle.
Constructs a PersistableBundle containing a copy of the mappings from the given PersistableBundle.
Constructs a new, empty PersistableBundle sized to hold the given number of elements.

Public Properties

[read-only]
static
CreatorIParcelableCreator.
[read-only]
static
EmptyPersistableBundle.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Clone() : Object
Clones the current PersistableBundle.
DescribeContents() : Int32
Report the nature of this Parcelable's contents
GetPersistableBundle(String) : PersistableBundle
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.
PutPersistableBundle(String, PersistableBundle)
Inserts a PersistableBundle value into the mapping of this Bundle, replacing any existing value for the given key.
WriteToParcel(Parcel, ParcelableWriteFlags)
Writes the PersistableBundle contents to a Parcel, typically in order for it to be passed through an IBinder connection.