java.lang.Object | |
↳ | android.app.VoiceInteractor.PickOptionRequest.Option |
Represents a single option that the user may select using their voice. The
getIndex()
method should be used as a unique ID to identify the option
when it is returned from the voice interactor.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an option that a user can select with their voice by matching the label
or one of several synonyms.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a synonym term to the option to indicate an alternative way the content
may be matched.
| |||||||||||
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Return any optional extras information associated with this option, or null
if there is none.
| |||||||||||
Return the index that was supplied in the constructor.
| |||||||||||
Set optional extra information associated with this option.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Creates an option that a user can select with their voice by matching the label or one of several synonyms.
label | The label that will both be matched against what the user speaks and displayed visually. |
---|---|
index | The location of this option within the overall set of options. Can be used to help identify the option when it is returned from the voice interactor. |
Add a synonym term to the option to indicate an alternative way the content may be matched.
synonym | The synonym that will be matched against what the user speaks, but not displayed. |
---|
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Return any optional extras information associated with this option, or null if there is none. Note that this method returns a reference to the actual extras Bundle in the option, so modifications to it will directly modify the extras in the option.
Return the index that was supplied in the constructor. If the option was constructed without an index, -1 is returned.
Set optional extra information associated with this option. Note that this method takes ownership of the supplied extras Bundle.
Flatten this object in to a Parcel.
dest | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|