blob: 44789f0eca7d128ffdd8efe0ab0b2688c061fafe (
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
|
<h1>SDLOnCommand Class Reference</h1>
<h3>Section Contents</h3>
<ul>
<li><a href="#section-cmdID">cmdID</a></li>
<li><a href="#section-triggerSource">triggerSource</a></li>
</ul>
<h3>Overview</h3>
<p>This is called when a command was selected via VR after pressing the PTT button, or selected from the menu after
pressing the MENU button.</p>
<p><b>Note:</b> The sequence of <em>SDLOnHMIStatus</em> and <em>SDLOnCommand</em> notifications for user-initiated interactions is indeterminate.</p>
<p>@since SDL 1.0</p>
<div class="aside aside-see">
<p class="aside-title">See</p>
SDLAddCommand SDLDeleteCommand SDLDeleteSubMenu
</div>
<section class="section task-group-section">
<h3 id="section-cmdID">
cmdID
</h3>
<p>@abstract The command ID of the command the user selected. This is the command ID value provided by the application in the <i>SDLAddCommand</i> operation that created the command.</p>
<h4>Objective-C</h4>
<pre class="highlight"><code><span class="k">@property</span> <span class="p">(</span><span class="n">readwrite</span><span class="p">,</span> <span class="n">strong</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n">NSNumber</span><span class="o"><</span><span class="n"><a href="../Protocols.html#/c:objc(pl)SDLInt">SDLInt</a></span><span class="o">></span> <span class="o">*</span><span class="n">_Nonnull</span> <span class="n">cmdID</span><span class="p">;</span></code></pre>
<h4>Swift</h4>
<pre class="highlight"><code><span class="k">var</span> <span class="nv">cmdID</span><span class="p">:</span> <span class="kt">NSNumber</span> </code></pre>
<h3 id="section-triggerSource">
triggerSource
</h3>
<p>@abstract Indicates whether command was selected via voice or via a menu selection (using the OK button).</p>
<h4>Objective-C</h4>
<pre class="highlight"><code><span class="k">@property</span> <span class="p">(</span><span class="n">readwrite</span><span class="p">,</span> <span class="n">strong</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n"><a href="../Type Definitions.html#/c:SDLTriggerSource.h@T@SDLTriggerSource">SDLTriggerSource</a></span> <span class="n">_Nonnull</span> <span class="n">triggerSource</span><span class="p">;</span></code></pre>
<h4>Swift</h4>
<pre class="highlight"><code><span class="k">var</span> <span class="nv">triggerSource</span><span class="p">:</span> <span class="kt"><a href="../Type Definitions.html#/c:SDLTriggerSource.h@T@SDLTriggerSource">SDLTriggerSource</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>
</section>
|