summaryrefslogtreecommitdiff
path: root/SDL_Android/LivioTesterApp/assets/help_docs/html/SubscribeToButtons.html
blob: 980da03a1acfd464dccadc9ed2c990d27b17d7a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<html>

<head>

<link rel="stylesheet" type="text/css" href="../css/style.css">

</head>

<body>

<h1>Subscribe to Buttons</h1>

The ButtonSubscribe command allows the developer to subscribe to hardware buttons that are contained in the vehicle.  When one of the subscribed buttons 
is pressed, the event is dispatched to the onOnButtonPress method in the SDL service.

<p>
Button subscriptions are currently handled one at a time, so if the application would like to subscribe to multiple buttons, a separate message must be
sent for each button.

<p>
In order to subscribe the application to hardware buttons, only one parameter is required:

<p>
<h2>ButtonName (required)</h2>
<h3>Type: Enumerated Value</h3>
</br>
Represents the button to subscribe to.

<h3>Available Button Name Options</h3>
<table>
<tr>
<th>Enumerated Value</th>
<th>Button Name</th>
</tr>

<tr>
<td>OK</td>
<td>Represents the OK and PLAY buttons.</td>
</tr>

<tr>
<td>PRESET0 - PRESET9</td>
<td>Represents the preset buttons.</td>
</tr>

<tr>
<td>SEEK_LEFT</td>
<td>Represents the left seek button.</td>
</tr>

<tr>
<td>SEEK_RIGHT</td>
<td>Represents the right seek button.</td>
</tr>

<tr>
<td>TUNE_UP</td>
<td>Represents the up tune button.</td>
</tr>

<tr>
<td>TUNE_DOWN</td>
<td>Represents the down tune button.</td>
</tr>

</table>



</body>

</html>