blob: 94624dead3fe402cc6badced9bcb36101721a7a4 (
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
|
<h1>SDLDynamicMenuUpdatesMode Enumeration Reference</h1>
<h3>Section Contents</h3>
<ul>
<li><a href="#section-SDLDynamicMenuUpdatesModeForceOn">SDLDynamicMenuUpdatesModeForceOn</a></li>
<li><a href="#section-SDLDynamicMenuUpdatesModeForceOff">SDLDynamicMenuUpdatesModeForceOff</a></li>
<li><a href="#section-SDLDynamicMenuUpdatesModeOnWithCompatibility">SDLDynamicMenuUpdatesModeOnWithCompatibility</a></li>
</ul>
<h3>Overview</h3>
<p>Dynamic Menu Manager Mode</p>
<p>When on this feature will smart arrange a new menu comparing it to the old menu if one exists.</p>
<section class="section task-group-section">
<h3 id="section-SDLDynamicMenuUpdatesModeForceOn">
SDLDynamicMenuUpdatesModeForceOn
</h3>
<p>Forces on compatibility mode. This will force the menu manager to delete and re-add each menu item for every menu update. This mode is generally not advised due to performance issues.</p>
<h4>Objective-C</h4>
<pre class="highlight objective_c"><code><span class="n">SDLDynamicMenuUpdatesModeForceOn</span> <span class="o">=</span> <span class="mi">0</span></code></pre>
<h4>Swift</h4>
<pre class="highlight swift"><code><span class="k">case</span> <span class="n">forceOn</span> <span class="o">=</span> <span class="mi">0</span></code></pre>
<h3 id="section-SDLDynamicMenuUpdatesModeForceOff">
SDLDynamicMenuUpdatesModeForceOff
</h3>
<p>This mode forces the menu manager to always dynamically update menu items for each menu update. This will provide the best performance but may cause ordering issues on some SYNC Gen 3 head units.</p>
<h4>Objective-C</h4>
<pre class="highlight objective_c"><code><span class="n">SDLDynamicMenuUpdatesModeForceOff</span></code></pre>
<h4>Swift</h4>
<pre class="highlight swift"><code><span class="k">case</span> <span class="n">forceOff</span> <span class="o">=</span> <span class="mi">1</span></code></pre>
<h3 id="section-SDLDynamicMenuUpdatesModeOnWithCompatibility">
SDLDynamicMenuUpdatesModeOnWithCompatibility
</h3>
<p>This mode checks whether the phone is connected to a SYNC Gen 3 head unit, which has known menu ordering issues. If it is, it will always delete and re-add every menu item, if not, it will dynamically update the menus.</p>
<h4>Objective-C</h4>
<pre class="highlight objective_c"><code><span class="n">SDLDynamicMenuUpdatesModeOnWithCompatibility</span></code></pre>
<h4>Swift</h4>
<pre class="highlight swift"><code><span class="k">case</span> <span class="n">onWithCompatibility</span> <span class="o">=</span> <span class="mi">2</span></code></pre>
</section>
|