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

SDLGetSystemCapability Class Reference

Section Contents

Overview

Undocumented

-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 (readwrite, strong, nonatomic)
    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 (readwrite, strong, nonatomic, nullable) NSNumber<SDLBool> *subscribe;

Swift

var subscribe: (NSNumber & SDLBool)? { get set }
View on GitHub.com
Previous Section Next Section