Parcel.Obtain Method

Definition

Overloads

Obtain()

Retrieve a new Parcel object from the pool.

Obtain(IBinder)

Retrieve a new Parcel object from the pool for use with a specific binder.

Obtain()

Retrieve a new Parcel object from the pool.

[Android.Runtime.Register("obtain", "()Landroid/os/Parcel;", "")]
public static Android.OS.Parcel Obtain ();
[<Android.Runtime.Register("obtain", "()Landroid/os/Parcel;", "")>]
static member Obtain : unit -> Android.OS.Parcel

Returns

Attributes

Remarks

Retrieve a new Parcel object from the pool.

Java documentation for android.os.Parcel.obtain().

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.

Applies to

Obtain(IBinder)

Retrieve a new Parcel object from the pool for use with a specific binder.

[Android.Runtime.Register("obtain", "(Landroid/os/IBinder;)Landroid/os/Parcel;", "", ApiSince=33)]
public static Android.OS.Parcel Obtain (Android.OS.IBinder binder);
[<Android.Runtime.Register("obtain", "(Landroid/os/IBinder;)Landroid/os/Parcel;", "", ApiSince=33)>]
static member Obtain : Android.OS.IBinder -> Android.OS.Parcel

Parameters

binder
IBinder

Returns

Attributes

Remarks

Retrieve a new Parcel object from the pool for use with a specific binder.

Associate this parcel with a binder object. This marks the parcel as being prepared for a transaction on this specific binder object. Based on this, the format of the wire binder protocol may change. For future compatibility, it is recommended to use this for all Parcels.

Java documentation for android.os.Parcel.obtain(android.os.IBinder).

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.

Applies to