Android Guides | Samples

Android.OS.Parcel.ReadParcelable Method

Read and return a new Parcelable from the parcel.

Syntax

[Android.Runtime.Register("readParcelable", "(Ljava/lang/ClassLoader;)Landroid/os/Parcelable;", "")]
public Object ReadParcelable (ClassLoader loader)

Parameters

loader
A ClassLoader from which to instantiate the Parcelable object, or null for the default class loader.

Exceptions

TypeReason
BadParcelableExceptionThrows BadParcelableException if there was an error trying to instantiate the Parcelable.

Remarks

Read and return a new Parcelable from the parcel. The given class loader will be used to load any enclosed Parcelables. If it is null, the default class loader will be used.

[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