Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
OnButtonListener

Interface OnButtonListener

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)

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)

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)

Parameters

info
- Error info
View on GitHub.com
Previous Section Next Section