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
SDLAppServiceRecord

SDLAppServiceRecord Class Reference

Section Contents

Overview

This is the record of an app service publisher that the module has. It should contain the most up to date information including the service’s active state.

@since RPC 5.1

-initWithServiceID:serviceManifest:servicePublished:serviceActive:

Convenience init for all parameters.

Objective-C

- (nonnull instancetype)initWithServiceID:(nonnull NSString *)serviceID
                          serviceManifest:
                              (nonnull SDLAppServiceManifest *)serviceManifest
                         servicePublished:(BOOL)servicePublished
                            serviceActive:(BOOL)serviceActive;

Swift

init(serviceID: String, serviceManifest: SDLAppServiceManifest, servicePublished: Bool, serviceActive: Bool)

Parameters

serviceID

A unique ID tied to this specific service record

serviceManifest

Manifest for the service that this record is for

servicePublished

If true, the service is published and available. If false, the service has likely just been unpublished, and should be considered unavailable

serviceActive

If true, the service is the active primary service of the supplied service type.

Return Value

A SDLAppServiceRecord object

serviceID

A unique ID tied to this specific service record. The ID is supplied by the module that services publish themselves.

String, Required

Objective-C

@property (nonatomic, strong) NSString *_Nonnull serviceID;

Swift

var serviceID: String { get set }

serviceManifest

Manifest for the service that this record is for.

SDLAppServiceManifest, Required

Objective-C

@property (nonatomic, strong) SDLAppServiceManifest *_Nonnull serviceManifest;

Swift

var serviceManifest: SDLAppServiceManifest { get set }

servicePublished

If true, the service is published and available. If false, the service has likely just been unpublished, and should be considered unavailable.

Boolean, Required

Objective-C

@property (nonatomic, strong) NSNumber<SDLBool> *_Nonnull servicePublished;

Swift

var servicePublished: NSNumber & SDLBool { get set }

serviceActive

If true, the service is the active primary service of the supplied service type. It will receive all potential RPCs that are passed through to that service type. If false, it is not the primary service of the supplied type. See servicePublished for its availability.

Boolean, Required

Objective-C

@property (nonatomic, strong) NSNumber<SDLBool> *_Nonnull serviceActive;

Swift

var serviceActive: NSNumber & SDLBool { get set }
View on GitHub.com
Previous Section Next Section