summaryrefslogtreecommitdiff
path: root/docs/Protocols/SDLManagerDelegate.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/Protocols/SDLManagerDelegate.html')
-rw-r--r--docs/Protocols/SDLManagerDelegate.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/Protocols/SDLManagerDelegate.html b/docs/Protocols/SDLManagerDelegate.html
index 71bf4b236..01b6300bf 100644
--- a/docs/Protocols/SDLManagerDelegate.html
+++ b/docs/Protocols/SDLManagerDelegate.html
@@ -7,6 +7,7 @@
<li><a href="#section--hmiLevel:didChangeToLevel:">-hmiLevel:didChangeToLevel:</a></li>
<li><a href="#section--audioStreamingState:didChangeToState:">-audioStreamingState:didChangeToState:</a></li>
<li><a href="#section--systemContext:didChangeToContext:">-systemContext:didChangeToContext:</a></li>
+ <li><a href="#section--managerShouldUpdateLifecycleToLanguage:">-managerShouldUpdateLifecycleToLanguage:</a></li>
</ul>
<h3>Overview</h3>
@@ -111,4 +112,32 @@
<dd><p>The current context.</p></dd>
</dl>
+ <h3 id="section--managerShouldUpdateLifecycleToLanguage:">
+ -managerShouldUpdateLifecycleToLanguage:
+ </h3>
+
+ <p>Called when the lifecycle manager detected a language mismatch. In case of a language mismatch the manager should change the apps registration by updating the lifecycle configuration to the specified language. If the app can support the specified language it should return an Object of SDLLifecycleConfigurationUpdate, otherwise it should return nil to indicate that the language is not supported.</p>
+
+
+
+ <h4>Objective-C</h4>
+ <pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="n">nullable</span> <span class="n"><a href="../Classes/SDLLifecycleConfigurationUpdate.html">SDLLifecycleConfigurationUpdate</a></span> <span class="o">*</span><span class="p">)</span>
+<span class="nf">managerShouldUpdateLifecycleToLanguage</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Type Definitions.html#/c:SDLLanguage.h@T@SDLLanguage">SDLLanguage</a></span><span class="p">)</span><span class="nv">language</span><span class="p">;</span></code></pre>
+
+
+ <h4>Swift</h4>
+ <pre class="highlight swift"><code><span class="kd">optional</span> <span class="kd">func</span> <span class="nf">managerShouldUpdateLifecycle</span><span class="p">(</span><span class="n">toLanguage</span> <span class="nv">language</span><span class="p">:</span> <span class="kt"><a href="../Type Definitions.html#/c:SDLLanguage.h@T@SDLLanguage">SDLLanguage</a></span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/SDLLifecycleConfigurationUpdate.html">SDLLifecycleConfigurationUpdate</a></span><span class="p">?</span></code></pre>
+
+
+
+ <h4>Parameters</h4>
+ <dl>
+ <dt>language</dt>
+ <dd><p>The language of the connected head unit the manager is trying to update the configuration.</p></dd>
+ </dl>
+ <div>
+ <h4>Return Value</h4>
+ <p>An object of SDLLifecycleConfigurationUpdate if the head unit language is supported, otherwise nil to indicate that the language is not supported.</p>
+ </div>
+
</section>