Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

SDLSystemCapabilityManager Class Reference

Section Contents

Overview

Undocumented

displayCapabilities

See

SDLDisplayCapabilities

Optional

Objective-C

@property (readonly, strong, nonatomic, nullable)
    SDLDisplayCapabilities *displayCapabilities;

Swift

var displayCapabilities: SDLDisplayCapabilities? { get }

hmiCapabilities

See

SDLHMICapabilities

Optional

Objective-C

@property (readonly, strong, nonatomic, nullable)
    SDLHMICapabilities *hmiCapabilities;

Swift

var hmiCapabilities: SDLHMICapabilities? { get }

softButtonCapabilities

If returned, the platform supports on-screen SoftButtons

See

SDLSoftButtonCapabilities

Optional, Array of length 1 - 100, of SDLSoftButtonCapabilities

Objective-C

@property (readonly, copy, nonatomic, nullable)
    NSArray<SDLSoftButtonCapabilities *> *softButtonCapabilities;

Swift

var softButtonCapabilities: [SDLSoftButtonCapabilities]? { get }

buttonCapabilities

See

SDLButtonCapabilities

Optional, Array of length 1 - 100, of SDLButtonCapabilities

Objective-C

@property (readonly, copy, nonatomic, nullable)
    NSArray<SDLButtonCapabilities *> *buttonCapabilities;

Swift

var buttonCapabilities: [SDLButtonCapabilities]? { get }

presetBankCapabilities

If returned, the platform supports custom on-screen Presets

See

SDLPresetBankCapabilities

Optional

Objective-C

@property (readonly, strong, nonatomic, nullable)
    SDLPresetBankCapabilities *presetBankCapabilities;

Swift

var presetBankCapabilities: SDLPresetBankCapabilities? { get }

hmiZoneCapabilities

See

SDLHMIZoneCapabilities

Optional, Array of length 1 - 100, of SDLHMIZoneCapabilities

Objective-C

@property (readonly, copy, nonatomic, nullable)
    NSArray<SDLHMIZoneCapabilities> *hmiZoneCapabilities;

Swift

var hmiZoneCapabilities: [SDLHMIZoneCapabilities]? { get }

speechCapabilities

See

SDLSpeechCapabilities

Optional, Array of length 1 - 100, of SDLSpeechCapabilities

Objective-C

@property (readonly, copy, nonatomic, nullable)
    NSArray<SDLSpeechCapabilities> *speechCapabilities;

Swift

var speechCapabilities: [SDLSpeechCapabilities]? { get }

prerecordedSpeechCapabilities

See

SDLPrerecordedSpeech

Optional, Array of length 1 - 100, of SDLPrerecordedSpeech

Objective-C

@property (readonly, copy, nonatomic, nullable)
    NSArray<SDLPrerecordedSpeech> *prerecordedSpeechCapabilities;

Swift

var prerecordedSpeechCapabilities: [SDLPrerecordedSpeech]? { get }

vrCapability

See

SDLVRCapabilities

True if the head unit supports voice recognition; false if not.

Objective-C

@property (readonly, assign, nonatomic) BOOL vrCapability;

Swift

var vrCapability: Bool { get }

audioPassThruCapabilities

See

SDLAudioPassThruCapabilities

Optional, Array of length 1 - 100, of SDLAudioPassThruCapabilities

Objective-C

@property (readonly, copy, nonatomic, nullable)
    NSArray<SDLAudioPassThruCapabilities *> *audioPassThruCapabilities;

Swift

var audioPassThruCapabilities: [SDLAudioPassThruCapabilities]? { get }

pcmStreamCapability

See

SDLAudioPassThruCapabilities

Optional, Array of length 1 - 100, of SDLAudioPassThruCapabilities

Objective-C

@property (readonly, strong, nonatomic, nullable)
    SDLAudioPassThruCapabilities *pcmStreamCapability;

Swift

var pcmStreamCapability: SDLAudioPassThruCapabilities? { get }

navigationCapability

If returned, the platform supports navigation

See

SDLNavigationCapability

Optional

Objective-C

@property (readonly, strong, nonatomic, nullable)
    SDLNavigationCapability *navigationCapability;

Swift

var navigationCapability: SDLNavigationCapability? { get }

phoneCapability

If returned, the platform supports making phone calls

See

SDLPhoneCapability

Optional

Objective-C

@property (readonly, strong, nonatomic, nullable)
    SDLPhoneCapability *phoneCapability;

Swift

var phoneCapability: SDLPhoneCapability? { get }

videoStreamingCapability

If returned, the platform supports video streaming

See

SDLVideoStreamingCapability

Optional

Objective-C

@property (readonly, strong, nonatomic, nullable)
    SDLVideoStreamingCapability *videoStreamingCapability;

Swift

var videoStreamingCapability: SDLVideoStreamingCapability? { get }

remoteControlCapability

If returned, the platform supports remote control capabilities

See

SDLRemoteControlCapabilities

Optional

Objective-C

@property (readonly, strong, nonatomic, nullable)
    SDLRemoteControlCapabilities *remoteControlCapability;

Swift

var remoteControlCapability: SDLRemoteControlCapabilities? { get }

-init

Init is unavailable. Dependencies must be injected using initWithConnectionManager:

Objective-C

- (nonnull instancetype)init;

Return Value

nil

-initWithConnectionManager:

Creates a new system capability manager with a specified connection manager

Objective-C

- (nonnull instancetype)initWithConnectionManager:
    (nonnull id<SDLConnectionManagerType>)manager;

Parameters

manager

A connection manager to use to forward on RPCs

Return Value

An instance of SDLSystemCapabilityManager

-stop

Stops the manager. This method is used internally.

Objective-C

- (void)stop;

Swift

func stop()

-updateCapabilityType:completionHandler:

Retrieves a capability type from the remote system. This function must be called in order to retrieve the values of navigationCapability, phoneCapability, videoStreamingCapability and remoteControlCapability. If you do not call this method first, those values will be nil. After calling this method, assuming there is no error in the handler, you may retrieve the capability you requested from the manager within the handler.

Objective-C

- (void)updateCapabilityType:(nonnull SDLSystemCapabilityType)type
           completionHandler:(nonnull SDLUpdateCapabilityHandler)handler;

Swift

func updateCapabilityType(_ type: SDLSystemCapabilityType, completionHandler handler: @escaping SDLUpdateCapabilityHandler)

Parameters

type

The type of capability to retrieve

handler

The handler to be called when the retrieval is complete

View on GitHub.com
Previous Section Next Section