Home | History | Annotate | Download | only in app

Lines Matching defs:Option

104                                 (PickOptionRequest.Option[]) args.arg2, (Bundle) args.arg3);
167 boolean finished, PickOptionRequest.Option[] options, Bundle result) {
382 * Select a single option from multiple potential options with the user via the trusted system
384 * a list view to allow selecting the option by touch.
391 final Option[] mOptions;
395 * Represents a single option that the user may select using their voice. The
396 * {@link #getIndex()} method should be used as a unique ID to identify the option
399 public static final class Option implements Parcelable {
406 * Creates an option that a user can select with their voice by matching the label
412 public Option(CharSequence label) {
418 * Creates an option that a user can select with their voice by matching the label
422 * @param index The location of this option within the overall set of options.
423 * Can be used to help identify the option when it is returned from the
426 public Option(CharSequence label, int index) {
432 * Add a synonym term to the option to indicate an alternative way the content
437 public Option addSynonym(CharSequence synonym) {
451 * If the option was constructed without an index, -1 is returned.
466 * Set optional extra information associated with this option. Note that this
474 * Return any optional extras information associated with this option, or null
476 * extras Bundle in the option, so modifications to it will directly modify the
477 * extras in the option.
483 Option(Parcel in) {
503 public static final Parcelable.Creator<Option> CREATOR
504 = new Parcelable.Creator<Option>() {
505 public Option createFromParcel(Parcel in) {
506 return new Option(in);
509 public Option[] newArray(int size) {
510 return new Option[size];
516 * Create a new pick option request.
519 * @param options The set of {@link Option}s the user is selecting from.
522 public PickOptionRequest(@Nullable Prompt prompt, Option[] options,
530 * Create a new pick option request.
533 * @param options The set of {@link Option}s the user is selecting from.
537 public PickOptionRequest(CharSequence prompt, Option[] options, Bundle extras) {
544 * Called when a single option is confirmed or narrowed to one of several options. Override
545 * this method to define the behavior when the user selects an option or narrows down the
550 * @param selections Either a single {@link Option} or one of several {@link Option}s the
554 public void onPickOptionResult(boolean finished, Option[] selections, Bundle result) {
563 Option op = mOptions[i];
768 * an option, or do similar operations. Multiple voice prompts may be provided for variety. A