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
SDLDisplayCapability

SDLDisplayCapability Class Reference

Section Contents

Overview

Contain the display related information and all windows related to that display.

@since SDL 6.0

-initWithDisplayName:

Init with required properties

Objective-C

- (nonnull instancetype)initWithDisplayName:(nonnull NSString *)displayName;

Swift

init(displayName: String)

Parameters

displayName

Name of the display.

-initWithDisplayName:windowCapabilities:windowTypeSupported:

Init with all the properties

Objective-C

- (nonnull instancetype)
    initWithDisplayName:(nonnull NSString *)displayName
     windowCapabilities:
         (nullable NSArray<SDLWindowCapability *> *)windowCapabilities
    windowTypeSupported:
        (nullable NSArray<SDLWindowTypeCapabilities *> *)windowTypeSupported;

Swift

init(displayName: String, windowCapabilities: [SDLWindowCapability]?, windowTypeSupported: [SDLWindowTypeCapabilities]?)

Parameters

displayName

Name of the display.

windowCapabilities

Contains a list of capabilities of all windows related to the app. - see: windowCapabilities

windowTypeSupported

Informs the application how many windows the app is allowed to create per type.

displayName

Name of the display.

Objective-C

@property (nonatomic, strong, nullable) NSString *displayName;

Swift

var displayName: String? { get set }

windowTypeSupported

Informs the application how many windows the app is allowed to create per type.

Min size 1 Max size 100

Objective-C

@property (nonatomic, strong, nullable) NSArray<SDLWindowTypeCapabilities *> *windowTypeSupported;

Swift

var windowTypeSupported: [SDLWindowTypeCapabilities]? { get set }

windowCapabilities

Contains a list of capabilities of all windows related to the app. Once the app has registered the capabilities of all windows will be provided, but GetSystemCapability still allows requesting window capabilities of all windows.

After registration, only windows with capabilities changed will be included. Following cases will cause only affected windows to be included:

  1. App creates a new window. After the window is created, a system capability notification will be sent related only to the created window.
  2. App sets a new template to the window. The new template changes window capabilities. The notification will reflect those changes to the single window.

Min size 1, Max size 1000

Objective-C

@property (nonatomic, strong, nullable) NSArray<SDLWindowCapability *> *windowCapabilities;

Swift

var windowCapabilities: [SDLWindowCapability]? { get set }
View on GitHub.com
Previous Section Next Section