SDLAppServiceCapability Class Reference

Section Contents

Overview

A currently available service.

@since RPC 5.1

-initWithUpdatedAppServiceRecord:

Convenience init for required parameters.

Objective-C

- (nonnull instancetype)initWithUpdatedAppServiceRecord:
    (nonnull SDLAppServiceRecord *)updatedAppServiceRecord;

Swift

init(updatedAppServiceRecord: SDLAppServiceRecord)

Parameters

updatedAppServiceRecord

Service record for a specific app service provider

Return Value

A SDLAppServiceCapability object

-initWithUpdateReason:updatedAppServiceRecord:

Convenience init for all parameters.

Objective-C

- (nonnull instancetype)initWithUpdateReason:
                            (nullable SDLServiceUpdateReason)updateReason
                     updatedAppServiceRecord:
                         (nonnull SDLAppServiceRecord *)updatedAppServiceRecord;

Swift

convenience init(updateReason: SDLServiceUpdateReason?, updatedAppServiceRecord: SDLAppServiceRecord)

Parameters

updateReason

Update reason for this service record

updatedAppServiceRecord

Service record for a specific app service provider

Return Value

A SDLAppServiceCapability object

updateReason

Only included in OnSystemCapbilityUpdated. Update reason for this service record.

SDLServiceUpdateReason, Optional

Objective-C

@property (nonatomic, strong, nullable) SDLServiceUpdateReason updateReason;

Swift

var updateReason: SDLServiceUpdateReason? { get set }

updatedAppServiceRecord

Service record for a specific app service provider.

SDLAppServiceRecord, Required

Objective-C

@property (nonatomic, strong) SDLAppServiceRecord *_Nonnull updatedAppServiceRecord;

Swift

var updatedAppServiceRecord: SDLAppServiceRecord { get set }