Contains all the current data of the app service. The serviceType will link to which of the service data objects are included in this object (e.g. if the service type is MEDIA, the mediaServiceData param should be included).
@since RPC 5.1
Convenience init for service type and service id.
- (nonnull instancetype)initWithAppServiceType:
(nonnull SDLAppServiceType)serviceType
serviceId:(nonnull NSString *)serviceId;
init(appServiceType serviceType: SDLAppServiceType, serviceId: String)
The type of service that is to be offered by this app.
A unique ID tied to this specific service record.
A SDLAppServiceData object
Convenience init for media service data.
- (nonnull instancetype)initWithMediaServiceData:
(nonnull SDLMediaServiceData *)mediaServiceData
serviceId:(nonnull NSString *)serviceId;
convenience init(mediaServiceData: SDLMediaServiceData, serviceId: String)
The media service data
A unique ID tied to this specific service record.
A SDLAppServiceData object
Convenience init for weather service data.
- (nonnull instancetype)initWithWeatherServiceData:
(nonnull SDLWeatherServiceData *)weatherServiceData
serviceId:
(nonnull NSString *)serviceId;
convenience init(weatherServiceData: SDLWeatherServiceData, serviceId: String)
The weather service data
A unique ID tied to this specific service record.
A SDLAppServiceData object
Convenience init for navigation service data.
- (nonnull instancetype)
initWithNavigationServiceData:
(nonnull SDLNavigationServiceData *)navigationServiceData
serviceId:(nonnull NSString *)serviceId;
convenience init(navigationServiceData: SDLNavigationServiceData, serviceId: String)
The navigation service data
A unique ID tied to this specific service record.
A SDLAppServiceData object
Convenience init for all parameters.
- (nonnull instancetype)
initWithAppServiceType:(nonnull SDLAppServiceType)serviceType
serviceId:(nonnull NSString *)serviceId
mediaServiceData:(nullable SDLMediaServiceData *)mediaServiceData
weatherServiceData:(nullable SDLWeatherServiceData *)weatherServiceData
navigationServiceData:
(nullable SDLNavigationServiceData *)navigationServiceData;
convenience init(appServiceType serviceType: SDLAppServiceType, serviceId: String, mediaServiceData: SDLMediaServiceData?, weatherServiceData: SDLWeatherServiceData?, navigationServiceData: SDLNavigationServiceData?)
The type of service that is to be offered by this app.
A unique ID tied to this specific service record.
The media service data
The weather service data
The navigation service data
A SDLAppServiceData object
The type of service that is to be offered by this app. See AppServiceType
for known enum equivalent types. Parameter is a string to allow for new service types to be used by apps on older versions of SDL Core.
String, See SDLAppServiceType
, Required
@property (nonatomic, strong) NSString *_Nonnull serviceType;
var serviceType: String { get set }
A unique ID tied to this specific service record. The ID is supplied by the module that services publish themselves.
String, Required
@property (nonatomic, strong) NSString *_Nonnull serviceId;
var serviceId: String { get set }
The media service data.
SDLMediaServiceData, Optional
@property (nonatomic, strong, nullable) SDLMediaServiceData *mediaServiceData;
var mediaServiceData: SDLMediaServiceData? { get set }
The weather service data.
SDLWeatherServiceData, Optional
@property (nonatomic, strong, nullable) SDLWeatherServiceData *weatherServiceData;
var weatherServiceData: SDLWeatherServiceData? { get set }
The navigation service data.
SDLNavigationServiceData, Optional
@property (nonatomic, strong, nullable) SDLNavigationServiceData *navigationServiceData;
var navigationServiceData: SDLNavigationServiceData? { get set }