Android Guides | Samples

Android.OS.Parcel.SetDataCapacity Method

Change the capacity (current available space) of the parcel.

Syntax

[Android.Runtime.Register("setDataCapacity", "(I)V", "")]
public Void SetDataCapacity (Int32 size)

Parameters

size
The new capacity of the parcel, in bytes. Can not be less than Parcel.DataSize -- that is, you can not drop existing data with this method.

Remarks

Change the capacity (current available space) of the parcel.

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1