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
DeviceInfo

DeviceInfo Class Reference

Constructors

Instance Methods

Constructors

new DeviceInfo(parameters)

Initializes an instance of DeviceInfo.

Instance Methods

deviceInfo.getCarrier() ⇒ String

Get the Carrier

Kind: Instance method of DeviceInfo
Returns: String - the KEY_CARRIER value

deviceInfo.getFirmwareRev() ⇒ String

Get the FirmwareRev

Kind: Instance method of DeviceInfo
Returns: String - the KEY_FIRMWARE_REV value

deviceInfo.getHardware() ⇒ String

Get the Hardware

Kind: Instance method of DeviceInfo
Returns: String - the KEY_HARDWARE value

deviceInfo.getMaxNumberRFCOMMPorts() ⇒ Number

Get the MaxNumberRFCOMMPorts

Kind: Instance method of DeviceInfo
Returns: Number - the KEY_MAX_NUMBER_RFCOMM_PORTS value

deviceInfo.getOs() ⇒ String

Get the Os

Kind: Instance method of DeviceInfo
Returns: String - the KEY_OS value

deviceInfo.getOsVersion() ⇒ String

Get the OsVersion

Kind: Instance method of DeviceInfo
Returns: String - the KEY_OS_VERSION value

deviceInfo.setCarrier(carrier) ⇒ DeviceInfo

Set the Carrier

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

ParamTypeDescription
carrier String Device mobile carrier (if applicable) - The desired Carrier. {'string_min_length': 0, 'string_max_length': 500}

deviceInfo.setFirmwareRev(rev) ⇒ DeviceInfo

Set the FirmwareRev

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

ParamTypeDescription
rev String Device firmware revision - The desired FirmwareRev. {'string_min_length': 0, 'string_max_length': 500}

deviceInfo.setHardware(hardware) ⇒ DeviceInfo

Set the Hardware

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

ParamTypeDescription
hardware String Device model - The desired Hardware. {'string_min_length': 0, 'string_max_length': 500}

deviceInfo.setMaxNumberRFCOMMPorts(ports) ⇒ DeviceInfo

Set the MaxNumberRFCOMMPorts

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

ParamTypeDescription
ports Number Omitted if connected not via BT. - The desired MaxNumberRFCOMMPorts. {'num_min_value': 0, 'num_max_value': 100}

deviceInfo.setOs(os) ⇒ DeviceInfo

Set the Os

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

ParamTypeDescription
os String Device OS - The desired Os. {'string_min_length': 0, 'string_max_length': 500}

deviceInfo.setOsVersion(version) ⇒ DeviceInfo

Set the OsVersion

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

ParamTypeDescription
version String Device OS version - The desired OsVersion. {'string_min_length': 0, 'string_max_length': 500}
View on GitHub.com
Previous Section Next Section