summaryrefslogtreecommitdiff
path: root/docs/Classes/SDLGetInteriorVehicleData.html
blob: 997e171d251e79b4701b8479dae7e0e7ab7853e3 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<h1>SDLGetInteriorVehicleData Class Reference</h1>

<h3>Section Contents</h3>

<ul>
  <li><a href="#section--initWithModuleType:moduleId:">-initWithModuleType:moduleId:</a></li>
  <li><a href="#section--initAndSubscribeToModuleType:moduleId:">-initAndSubscribeToModuleType:moduleId:</a></li>
  <li><a href="#section--initAndUnsubscribeToModuleType:moduleId:">-initAndUnsubscribeToModuleType:moduleId:</a></li>
  <li><a href="#section-moduleType">moduleType</a></li>
  <li><a href="#section-moduleId">moduleId</a></li>
  <li><a href="#section-subscribe">subscribe</a></li>
</ul>

<h3>Overview</h3>

<p>Reads the current status value of specified remote control module (type).
When subscribe is true, subscribes for specific remote control module data items.
When subscribe is false, unsubscribes for specific remote control module data items.
Once subscribed, the application will be notified by the onInteriorVehicleData RPC notification
whenever new data is available for the module.</p>


<section class="section task-group-section">
  <h3 id="section--initWithModuleType:moduleId:">
      -initWithModuleType:moduleId:
  </h3>
  
  <p>Convenience init to get information of a particular module type with a module ID.</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n">instancetype</span><span class="p">)</span><span class="nf">initWithModuleType</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Type%20Definitions.html#/c:SDLModuleType.h@T@SDLModuleType">SDLModuleType</a></span><span class="p">)</span><span class="nv">moduleType</span>
                                  <span class="nf">moduleId</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">moduleId</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="nf">init</span><span class="p">(</span><span class="nv">moduleType</span><span class="p">:</span> <span class="kt"><a href="../Type%20Definitions.html#/c:SDLModuleType.h@T@SDLModuleType">SDLModuleType</a></span><span class="p">,</span> <span class="nv">moduleId</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span></code></pre>

  
  
  <h4>Parameters</h4>
  <dl>
      <dt>moduleType</dt>
      <dd><p>The type of a RC module to retrieve module data from the vehicle</p></dd>
      <dt>moduleId</dt>
      <dd><p>Id of a module, published by System Capability</p></dd>
  </dl>
  <div>
    <h4>Return Value</h4>
    <p>An SDLGetInteriorVehicleData object</p>
  </div>
  
  <h3 id="section--initAndSubscribeToModuleType:moduleId:">
      -initAndSubscribeToModuleType:moduleId:
  </h3>
  
  <p>Convenience init to get information and subscribe to a particular module type with a module ID.</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n">instancetype</span><span class="p">)</span>
    <span class="nf">initAndSubscribeToModuleType</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Type%20Definitions.html#/c:SDLModuleType.h@T@SDLModuleType">SDLModuleType</a></span><span class="p">)</span><span class="nv">moduleType</span>
                        <span class="nf">moduleId</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">moduleId</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="nf">init</span><span class="p">(</span><span class="n">andSubscribeToModuleType</span> <span class="nv">moduleType</span><span class="p">:</span> <span class="kt"><a href="../Type%20Definitions.html#/c:SDLModuleType.h@T@SDLModuleType">SDLModuleType</a></span><span class="p">,</span> <span class="nv">moduleId</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span></code></pre>

  
  
  <h4>Parameters</h4>
  <dl>
      <dt>moduleType</dt>
      <dd><p>The type of a RC module to retrieve module data from the vehicle</p></dd>
      <dt>moduleId</dt>
      <dd><p>Id of a module, published by System Capability</p></dd>
  </dl>
  <div>
    <h4>Return Value</h4>
    <p>An SDLGetInteriorVehicleData object</p>
  </div>
  
  <h3 id="section--initAndUnsubscribeToModuleType:moduleId:">
      -initAndUnsubscribeToModuleType:moduleId:
  </h3>
  
  <p>Convenience init to unsubscribe from particular module with a module ID.</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n">instancetype</span><span class="p">)</span>
    <span class="nf">initAndUnsubscribeToModuleType</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Type%20Definitions.html#/c:SDLModuleType.h@T@SDLModuleType">SDLModuleType</a></span><span class="p">)</span><span class="nv">moduleType</span>
                          <span class="nf">moduleId</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">moduleId</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="nf">init</span><span class="p">(</span><span class="n">andUnsubscribeToModuleType</span> <span class="nv">moduleType</span><span class="p">:</span> <span class="kt"><a href="../Type%20Definitions.html#/c:SDLModuleType.h@T@SDLModuleType">SDLModuleType</a></span><span class="p">,</span> <span class="nv">moduleId</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span></code></pre>

  
  
  <h4>Parameters</h4>
  <dl>
      <dt>moduleType</dt>
      <dd><p>The type of a RC module to retrieve module data from the vehicle</p></dd>
      <dt>moduleId</dt>
      <dd><p>Id of a module, published by System Capability</p></dd>
  </dl>
  <div>
    <h4>Return Value</h4>
    <p>An SDLGetInteriorVehicleData object</p>
  </div>
  
  <h3 id="section-moduleType">
      moduleType
  </h3>
  
  <p>The type of a RC module to retrieve module data from the vehicle.</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">strong</span><span class="p">)</span> <span class="n"><a href="../Type%20Definitions.html#/c:SDLModuleType.h@T@SDLModuleType">SDLModuleType</a></span> <span class="n">_Nonnull</span> <span class="n">moduleType</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">moduleType</span><span class="p">:</span> <span class="kt"><a href="../Type%20Definitions.html#/c:SDLModuleType.h@T@SDLModuleType">SDLModuleType</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

  
  
  
  <h3 id="section-moduleId">
      moduleId
  </h3>
  
  <p>Id of a module, published by System Capability.</p>

<p>Optional</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">strong</span><span class="p">,</span> <span class="n">nullable</span><span class="p">)</span> <span class="n">NSString</span> <span class="o">*</span><span class="n">moduleId</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">moduleId</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

  
  
  
  <h3 id="section-subscribe">
      subscribe
  </h3>
  
  <p>If subscribe is true, the head unit will register OnInteriorVehicleData notifications for the requested module (moduleId and moduleType).
 If subscribe is false, the head unit will unregister OnInteriorVehicleData notifications for the requested module (moduleId and moduleType).
 If subscribe is not included, the subscription status of the app for the requested module (moduleId and moduleType) will remain unchanged.</p>

<p>optional, Boolean, default Value = false</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">strong</span><span class="p">,</span> <span class="n">nullable</span><span class="p">)</span> <span class="n">NSNumber</span><span class="o">&lt;</span><span class="n"><a href="../Protocols.html#/c:objc(pl)SDLBool">SDLBool</a></span><span class="o">&gt;</span> <span class="o">*</span><span class="n">subscribe</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">subscribe</span><span class="p">:</span> <span class="p">(</span><span class="kt">NSNumber</span> <span class="o">&amp;</span> <span class="kt"><a href="../Protocols.html#/c:objc(pl)SDLBool">SDLBool</a></span><span class="p">)?</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

  
  
  
</section>