public class ParcelableConfiguration
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<ParcelableConfiguration> |
CREATOR
This field is used by android to create parcelable configurations from a
parcel.
|
| Constructor and Description |
|---|
ParcelableConfiguration(RecognitionConfiguration configuration)
Creates a new parcelable configuration from a given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents()
Returns a bitmask to describe the special contents to be marshalled.
|
RecognitionConfiguration |
getConfiguration()
Returns the recognition configuration contained in the parcelable
configuration.
|
void |
writeToParcel(android.os.Parcel parcel,
int flags)
Serializes a configuration via a parcel.
|
public static final android.os.Parcelable.Creator<ParcelableConfiguration> CREATOR
public ParcelableConfiguration(RecognitionConfiguration configuration)
configuration - The configuration that shall be used.public int describeContents()
describeContents in interface android.os.Parcelablepublic RecognitionConfiguration getConfiguration()
public void writeToParcel(android.os.Parcel parcel,
int flags)
writeToParcel in interface android.os.Parcelableparcel - The parcel used for serialization.flags - Additional flags to determine how the deserialization should
be done. Ignored by this implementation.