|
4 | 4 | import com.smartdevicelink.proxy.rpc.OnButtonPress; |
5 | 5 | import com.smartdevicelink.proxy.rpc.enums.ButtonName; |
6 | 6 |
|
| 7 | +/** |
| 8 | + * OnButtonListener is a listener used for notifying when events have happened with SubscribeButtons |
| 9 | + */ |
| 10 | +public interface OnButtonListener { |
| 11 | + |
7 | 12 | /** |
8 | | - * OnButtonListener is a listener used for notifying when events have happened with SubscribeButtons |
| 13 | + * Returns when a Subscribed button is pressed |
| 14 | + * @param buttonName - Name of Button |
| 15 | + * @param buttonPress - OnButtonPress |
9 | 16 | */ |
10 | | - public interface OnButtonListener { |
11 | | - |
12 | | - /** |
13 | | - * Returns when a Subscribed button is pressed |
14 | | - * @param buttonName - Name of Button |
15 | | - * @param buttonPress - OnButtonPress |
16 | | - */ |
17 | | - void onPress(ButtonName buttonName, OnButtonPress buttonPress); |
| 17 | + void onPress(ButtonName buttonName, OnButtonPress buttonPress); |
18 | 18 |
|
19 | | - /** |
20 | | - * Returns when a Subscribed button Event has occurred |
21 | | - * @param buttonName - Name of Button |
22 | | - * @param buttonEvent - OnButtonEvent |
23 | | - */ |
24 | | - void onEvent(ButtonName buttonName, OnButtonEvent buttonEvent); |
| 19 | + /** |
| 20 | + * Returns when a Subscribed button Event has occurred |
| 21 | + * @param buttonName - Name of Button |
| 22 | + * @param buttonEvent - OnButtonEvent |
| 23 | + */ |
| 24 | + void onEvent(ButtonName buttonName, OnButtonEvent buttonEvent); |
25 | 25 |
|
26 | | - /** |
27 | | - * Returns when there is an error with subscribing to button |
28 | | - * @param info - Error info |
29 | | - */ |
30 | | - void onError(String info); |
31 | | - } |
| 26 | + /** |
| 27 | + * Returns when there is an error with subscribing to button |
| 28 | + * @param info - Error info |
| 29 | + */ |
| 30 | + void onError(String info); |
32 | 31 | } |
| 32 | + |
0 commit comments