This request asks the module for current data related to the specific service. It also includes an option to subscribe to that service for future updates.
Convenience init for service type.
- (nonnull instancetype)initWithAppServiceType:
(nonnull SDLAppServiceType)serviceType;
init(appServiceType serviceType: SDLAppServiceType)
The app service type
A SDLGetAppServiceData object
Convenience init for subscribing to a service type.
- (nonnull instancetype)initAndSubscribeToAppServiceType:
(nonnull SDLAppServiceType)serviceType;
init(andSubscribeToAppServiceType serviceType: SDLAppServiceType)
The app service type
A SDLGetAppServiceData object
Convenience init for unsubscribing to a service type
- (nonnull instancetype)initAndUnsubscribeToAppServiceType:
(nonnull SDLAppServiceType)serviceType;
init(andUnsubscribeToAppServiceType serviceType: SDLAppServiceType)
The app service type
A SDLGetAppServiceData 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 }
If true, the consumer is requesting to subscribe to all future updates from the service publisher. If false, the consumer doesn’t wish to subscribe and should be unsubscribed if it was previously subscribed.
Boolean, Optional
@property (nonatomic, strong, nullable) NSNumber<SDLBool> *subscribe;
var subscribe: (NSNumber & SDLBool)? { get set }