SDLGetSystemCapability Class Reference

Section Contents

Overview

SDL RPC Request for expanded information about a supported system/HMI capability

@since SDL 4.5

-initWithType:

Convenience init

Objective-C

- (nonnull instancetype)initWithType:(nonnull SDLSystemCapabilityType)type;

Swift

init(type: SDLSystemCapabilityType)

Parameters

type

The type of system capability

Return Value

A SDLSystemCapabilityType object

-initWithType:subscribe:

Convenience init

Objective-C

- (nonnull instancetype)initWithType:(nonnull SDLSystemCapabilityType)type
                           subscribe:(BOOL)subscribe;

Swift

init(type: SDLSystemCapabilityType, subscribe: Bool)

Parameters

type

The type of system capability

subscribe

Whether or not to subscribe to updates of the supplied service capability type

Return Value

A SDLSystemCapabilityType object

systemCapabilityType

The type of system capability to get more information on

SDLSystemCapabilityType, Required

Objective-C

@property (nonatomic, strong) SDLSystemCapabilityType _Nonnull systemCapabilityType;

Swift

var systemCapabilityType: SDLSystemCapabilityType { get set }

subscribe

Flag to subscribe to updates of the supplied service capability type. If true, the requester will be subscribed. If false, the requester will not be subscribed and be removed as a subscriber if it was previously subscribed.

Boolean, Optional

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLBool> *subscribe;

Swift

var subscribe: (NSNumber & SDLBool)? { get set }