Stay organized with collections
Save and categorize content based on your preferences.
ActionChooserView.ActionChooserListener
public
static
interface
ActionChooserView.ActionChooserListener
android.support.wearable.view.ActionChooserView.ActionChooserListener
|
This interface is deprecated.
this interface is deprecated along with the rest of this class.
Interface for receiving callbacks about options chosen from an ActionChooserView
.
Summary
Public methods |
abstract
void
|
onOptionChosen(int option)
Called when an option has been chosen.
|
abstract
void
|
onOptionProgress(float percent)
Called to update the percentage an item has been selected
|
Public methods
onOptionChosen
public abstract void onOptionChosen (int option)
Called when an option has been chosen.
onOptionProgress
public abstract void onOptionProgress (float percent)
Called to update the percentage an item has been selected
Parameters |
percent |
float : the progress of an item being selected, ranging from 0 to 1.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ActionChooserView.ActionChooserListener\n=======================================\n\n\n`\npublic\nstatic\n\n\ninterface\nActionChooserView.ActionChooserListener\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------------------------------------|\n| android.support.wearable.view.ActionChooserView.ActionChooserListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This interface is deprecated.** \n\nthis interface is deprecated along with the rest of this class.\n\nInterface for receiving callbacks about options chosen from an [ActionChooserView](../../../../../reference/android/support/wearable/view/ActionChooserView.html).\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onOptionChosen](../../../../../reference/android/support/wearable/view/ActionChooserView.ActionChooserListener.html#onOptionChosen(int))`(int option) ` Called when an option has been chosen. |\n| ` abstract void` | ` `[onOptionProgress](../../../../../reference/android/support/wearable/view/ActionChooserView.ActionChooserListener.html#onOptionProgress(float))`(float percent) ` Called to update the percentage an item has been selected |\n\nPublic methods\n--------------\n\n### onOptionChosen\n\n```\npublic abstract void onOptionChosen (int option)\n```\n\nCalled when an option has been chosen.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `option` | `int`: the option chosen. see [ActionChooserView.OPTION_START](../../../../../reference/android/support/wearable/view/ActionChooserView.html#OPTION_START) and [ActionChooserView.OPTION_END](../../../../../reference/android/support/wearable/view/ActionChooserView.html#OPTION_END). \u003cbr /\u003e |\n\n### onOptionProgress\n\n```\npublic abstract void onOptionProgress (float percent)\n```\n\nCalled to update the percentage an item has been selected\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|------------------------------------------------------------------------------|\n| `percent` | `float`: the progress of an item being selected, ranging from 0 to 1. \u003cbr /\u003e |"]]