Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
Android 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)

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
Previous Section Next Section