BaseBundle BaseBundle Class

Definition

A mapping from String values to various types.

[Android.Runtime.Register("android/os/BaseBundle", ApiSince=21, DoNotGenerateAcw=true)]
public class BaseBundle : Java.Lang.Object
type BaseBundle = class
    inherit Object
Inheritance
BaseBundleBaseBundle
Derived
Attributes

Remarks

Android platform documentation

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

BaseBundle(IntPtr, JniHandleOwnership) BaseBundle(IntPtr, JniHandleOwnership)

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

Properties

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
IsEmpty IsEmpty

Returns true if the mapping of this Bundle is empty, false otherwise.

JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
PeerReference PeerReference Inherited from Object
ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

Clear() Clear()

Removes all elements from the mapping of this Bundle.

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
ContainsKey(String) ContainsKey(String)

Returns true if the given key is contained in the mapping of this Bundle.

Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
Get(String) Get(String)

Returns the entry with the given key as an object.

GetBoolean(String) GetBoolean(String)
GetBoolean(String, Boolean) GetBoolean(String, Boolean)
GetBooleanArray(String) GetBooleanArray(String)
GetDouble(String) GetDouble(String)

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) GetDouble(String, 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) GetDoubleArray(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.

GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetInt(String) GetInt(String)

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) GetInt(String, 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) GetIntArray(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.

GetLong(String) GetLong(String)

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) GetLong(String, 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) GetLongArray(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) GetString(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) GetString(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) GetStringArray(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.

JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
KeySet() KeySet()

Returns a Set containing the Strings used as keys in this Bundle.

Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
PutAll(PersistableBundle) PutAll(PersistableBundle)

Inserts all mappings from the given PersistableBundle into this BaseBundle.

PutBoolean(String, Boolean) PutBoolean(String, Boolean)
PutBooleanArray(String, Boolean[]) PutBooleanArray(String, Boolean[])
PutDouble(String, Double) PutDouble(String, Double)

Inserts a double value into the mapping of this Bundle, replacing any existing value for the given key.

PutDoubleArray(String, Double[]) 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) PutInt(String, Int32)

Inserts an int value into the mapping of this Bundle, replacing any existing value for the given key.

PutIntArray(String, Int32[]) 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) PutLong(String, Int64)

Inserts a long value into the mapping of this Bundle, replacing any existing value for the given key.

PutLongArray(String, Int64[]) 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) PutString(String, String)

Inserts a String value into the mapping of this Bundle, replacing any existing value for the given key.

PutStringArray(String, String[]) PutStringArray(String, String[])

Inserts a String array value into the mapping of this Bundle, replacing any existing value for the given key.

Remove(String) Remove(String)

Removes any entry with the given key from the mapping of this Bundle.

SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
Size() Size()

Returns the number of mappings contained in this Bundle.

ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Explicit Interface Implementations

IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to