Android Guides | Samples

Android.OS.BaseBundle Class

A mapping from String values to various types.

See Also: BaseBundle

Syntax

[Android.Runtime.Register("android/os/BaseBundle", DoNotGenerateAcw=true)]
public class BaseBundle : Object

Remarks

A mapping from String values to various types.

[Android Documentation]

Requirements

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

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

See Also: Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
IsEmptyBoolean. Returns true if the mapping of this Bundle is empty, false otherwise.

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

Clear()
Removes all elements from the mapping of this Bundle.
ContainsKey(String) : Boolean
Returns true if the given key is contained in the mapping of this Bundle.
Get(String) : Object
Returns the entry with the given key as an object.
GetDouble(String) : Double
Returns the value associated with the given key, or 0.0 if no mapping of the desired type exists for the given key.
GetDouble(String, Double) : Double
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
GetDoubleArray(String) : Double[]
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.
GetInt(String) : Int32
Returns the value associated with the given key, or 0 if no mapping of the desired type exists for the given key.
GetInt(String, Int32) : Int32
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
GetIntArray(String) : Int32[]
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.
GetLong(String) : Int64
Returns the value associated with the given key, or 0L if no mapping of the desired type exists for the given key.
GetLong(String, Int64) : Int64
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
GetLongArray(String) : Int64[]
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.
GetString(String) : String
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.
GetString(String, String) : String
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key or if a null value is explicitly associated with the given key.
GetStringArray(String) : String[]
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.
KeySet() : ICollection<string>
Returns a Set containing the Strings used as keys in this Bundle.
PutAll(PersistableBundle)
Inserts all mappings from the given PersistableBundle into this BaseBundle.
PutDouble(String, Double)
Inserts a double value into the mapping of this Bundle, replacing any existing value for the given key.
PutDoubleArray(String, Double[])
Inserts a double array value into the mapping of this Bundle, replacing any existing value for the given key.
PutInt(String, Int32)
Inserts an int value into the mapping of this Bundle, replacing any existing value for the given key.
PutIntArray(String, Int32[])
Inserts an int array value into the mapping of this Bundle, replacing any existing value for the given key.
PutLong(String, Int64)
Inserts a long value into the mapping of this Bundle, replacing any existing value for the given key.
PutLongArray(String, Int64[])
Inserts a long array value into the mapping of this Bundle, replacing any existing value for the given key.
PutString(String, String)
Inserts a String value into the mapping of this Bundle, replacing any existing value for the given key.
PutStringArray(String, String[])
Inserts a String array value into the mapping of this Bundle, replacing any existing value for the given key.
Remove(String)
Removes any entry with the given key from the mapping of this Bundle.
Size() : Int32
Returns the number of mappings contained in this Bundle.