- Package
- com.smartdevicelink.managers.screen
Overview
OnButtonListener is a listener used for notifying when events have happened with SubscribeButtons
Methods
onPress(
ButtonName buttonName,
OnButtonPress buttonPress
)
Returns when a Subscribed button is pressed
public void onPress(ButtonName buttonName,OnButtonPress buttonPress)
Method Parameters
- buttonName
- - Name of Button
- buttonPress
- - OnButtonPress
onEvent(
ButtonName buttonName,
OnButtonEvent buttonEvent
)
Returns when a Subscribed button Event has occurred
public void onEvent(ButtonName buttonName,OnButtonEvent buttonEvent)
Method Parameters
- buttonName
- - Name of Button
- buttonEvent
- - OnButtonEvent
onError(
String info
)
Returns when there is an error with subscribing to button
public void onError(String info)
Method Parameters
- info
- - Error info
View on GitHub.com