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
JavaScript Suite Documentation

GetAppServiceData Class Reference

Constructors

Instance Methods

Constructors

new GetAppServiceData(parameters)

Initializes an instance of GetAppServiceData.

Instance Methods

getAppServiceData.getServiceType() ⇒ String

Get the ServiceType

Kind: Instance method of GetAppServiceData
Returns: String - the KEY_SERVICE_TYPE value

getAppServiceData.getSubscribe() ⇒ Boolean

Get the Subscribe

Kind: Instance method of GetAppServiceData
Returns: Boolean - the KEY_SUBSCRIBE value

getAppServiceData.setServiceType(type) ⇒ GetAppServiceData

Set the ServiceType

Kind: Instance method of GetAppServiceData
Returns: GetAppServiceData - The class instance for method chaining.

ParamTypeDescription
type String 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. - The desired ServiceType. {'string_min_length': 1}

getAppServiceData.setSubscribe(subscribe) ⇒ GetAppServiceData

Set the Subscribe

Kind: Instance method of GetAppServiceData
Returns: GetAppServiceData - The class instance for method chaining.

ParamTypeDescription
subscribe Boolean 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. - The desired Subscribe.
View on GitHub.com