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
Convenience init for all parameters.
- (nonnull instancetype)initWithServiceID:(nonnull NSString *)serviceID
serviceManifest:
(nonnull SDLAppServiceManifest *)serviceManifest
servicePublished:(BOOL)servicePublished
serviceActive:(BOOL)serviceActive;
init(serviceID: String, serviceManifest: SDLAppServiceManifest, servicePublished: Bool, serviceActive: Bool)
A unique ID tied to this specific service record
Manifest for the service that this record is for
If true, the service is published and available. If false, the service has likely just been unpublished, and should be considered unavailable
If true, the service is the active primary service of the supplied service type.
A SDLAppServiceRecord object
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 }
Manifest for the service that this record is for.
SDLAppServiceManifest, Required
@property (nonatomic, strong) SDLAppServiceManifest *_Nonnull serviceManifest;
var serviceManifest: SDLAppServiceManifest { get set }
If true, the service is published and available. If false, the service has likely just been unpublished, and should be considered unavailable.
Boolean, Required
@property (nonatomic, strong) NSNumber<SDLBool> *_Nonnull servicePublished;
var servicePublished: NSNumber & SDLBool { get set }
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
@property (nonatomic, strong) NSNumber<SDLBool> *_Nonnull serviceActive;
var serviceActive: NSNumber & SDLBool { get set }