ActionChooserView.ActionChooserListener

public static interface ActionChooserView.ActionChooserListener

android.support.wearable.view.ActionChooserView.ActionChooserListener


用于接收关于从 ActionChooserView选择的选项的回调接口。

Summary

Public methods

abstract void onOptionChosen(int option)

当选择一个选项时调用。

abstract void onOptionProgress(float percent)

打电话更新一个项目被选中的百分比

Public methods

onOptionChosen

void onOptionChosen (int option)

当选择一个选项时调用。

Parameters
option int: the option chosen. see OPTION_START and OPTION_END.

onOptionProgress

void onOptionProgress (float percent)

打电话更新一个项目被选中的百分比

Parameters
percent float: the progress of an item being selected, ranging from 0 to 1.