Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
iOS Documentation
SDLManagerDelegate

SDLManagerDelegate Protocol Reference

Section Contents

Overview

The manager’s delegate

-managerDidDisconnect

Called upon a disconnection from the remote system.

Objective-C

- (void)managerDidDisconnect;

Swift

func managerDidDisconnect()

-hmiLevel:didChangeToLevel:

Called when the HMI level state of this application changes on the remote system. This is equivalent to the application’s state changes in iOS such as foreground, background, or closed.

Objective-C

- (void)hmiLevel:(nonnull SDLHMILevel)oldLevel
    didChangeToLevel:(nonnull SDLHMILevel)newLevel;

Swift

func hmiLevel(_ oldLevel: SDLHMILevel, didChangeToLevel newLevel: SDLHMILevel)

Parameters

oldLevel

The previous level which has now been left.

newLevel

The current level.

-audioStreamingState:didChangeToState:

Called when the audio streaming state of this application changes on the remote system. This refers to when streaming audio is audible to the user.

Objective-C

- (void)audioStreamingState:(nullable SDLAudioStreamingState)oldState
           didChangeToState:(nonnull SDLAudioStreamingState)newState;

Swift

optional func audioStreamingState(_ oldState: SDLAudioStreamingState?, didChangeToState newState: SDLAudioStreamingState)

Parameters

oldState

The previous state which has now been left.

newState

The current state.

-videoStreamingState:didChangetoState:

Called when the video streaming state of this application changes. This refers to streaming video for navigation purposes. If you are “autostreaming” via CarWindow, you should not do anything with this method. Everything should be handled for you automatically.

Only supported on RPC v5.0+ connections.

Objective-C

- (void)videoStreamingState:(nullable SDLVideoStreamingState)oldState
           didChangetoState:(nonnull SDLVideoStreamingState)newState;

Swift

optional func videoStreamingState(_ oldState: SDLVideoStreamingState?, didChangetoState newState: SDLVideoStreamingState)

Parameters

oldState

The previous state

newState

The current state

-systemContext:didChangeToContext:

Called when the system context of this application changes on the remote system. This refers to whether or not a user-initiated interaction is in progress, and if so, what it is.

Objective-C

- (void)systemContext:(nullable SDLSystemContext)oldContext
    didChangeToContext:(nonnull SDLSystemContext)newContext;

Swift

optional func systemContext(_ oldContext: SDLSystemContext?, didChangeToContext newContext: SDLSystemContext)

Parameters

oldContext

The previous context which has now been left.

newContext

The current context.

-managerShouldUpdateLifecycleToLanguage:hmiLanguage:

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.

Objective-C

- (nullable SDLLifecycleConfigurationUpdate *)
    managerShouldUpdateLifecycleToLanguage:(nonnull SDLLanguage)language
                               hmiLanguage:(nonnull SDLLanguage)hmiLanguage;

Swift

optional func managerShouldUpdateLifecycle(toLanguage language: SDLLanguage, hmiLanguage: SDLLanguage) -> SDLLifecycleConfigurationUpdate?

Parameters

language

The VR+TTS language of the connected head unit the manager is trying to update the configuration.

hmiLanguage

The HMI display language of the connected head unit the manager is trying to update the configuration.

Return Value

An object of SDLLifecycleConfigurationUpdate if the head unit language is supported, otherwise nil to indicate that the language is not supported.

-didReceiveSystemInfo:

A way to determine if this SDL session should continue to be active while connected to the determined system information of the vehicle.

Objective-C

- (BOOL)didReceiveSystemInfo:(nonnull SDLSystemInfo *)systemInfo;

Swift

optional func didReceiveSystemInfo(_ systemInfo: SDLSystemInfo) -> Bool

Parameters

systemInfo

The system information of the vehicle that this session is currently active on.

Return Value

True if this session should continue, false if the session should end

View on GitHub.com
Previous Section Next Section