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
JavaSE Documentation
DeviceInfo

Class DeviceInfo

Hierarchy

java.lang.Object
     com.smartdevicelink.proxy.RPCStruct

Package
com.smartdevicelink.proxy.rpc

Overview

Various information about connecting device.

Parameter List

Name Type Description Reg. Notes Version
hardware String Device model N Max Length: 500 SmartDeviceLink 3.0
firmwareRev String Device firmware revision N Max Length: 500 SmartDeviceLink 3.0
os String Device OS version N Max Length: 500 SmartDeviceLink 3.0
osVersion String Device OS version N Max Length: 500 SmartDeviceLink 3.0
carrier String Device mobile carrier (if applicable) N Max Length: 500 SmartDeviceLink 3.0
maxNumberRFCOMMPorts Integer Omitted if connected not via BT. N Min Value: 0; Max Value: 100 SmartDeviceLink 3.0

Fields

KEY_HARDWARE

public static final java.lang.String KEY_HARDWARE
Constant Value
"hardware"

KEY_FIRMWARE_REV

public static final java.lang.String KEY_FIRMWARE_REV
Constant Value
"firmwareRev"

KEY_OS

public static final java.lang.String KEY_OS
Constant Value
"os"

KEY_OS_VERSION

public static final java.lang.String KEY_OS_VERSION
Constant Value
"osVersion"

KEY_CARRIER

public static final java.lang.String KEY_CARRIER
Constant Value
"carrier"

KEY_MAX_NUMBER_RFCOMM_PORTS

public static final java.lang.String KEY_MAX_NUMBER_RFCOMM_PORTS
Constant Value
"maxNumberRFCOMMPorts"

Inherited Fields

From Class Fields
com.smartdevicelink.proxy.RPCStruct KEY_BULK_DATA, KEY_PROTECTED, store

Constructors

DeviceInfo()

public DeviceInfo()

DeviceInfo( java.util.Hashtable<java.lang.String, java.lang.Object> hash )

Constructs a new DeviceInfo object indicated by the Hashtable parameter

public DeviceInfo(java.util.Hashtable<java.lang.String, java.lang.Object> hash)

Constructor Parameters

hash
The hash table to use to create an instance of this RPC

Methods

setHardware( String hardware )

public com.smartdevicelink.proxy.rpc.DeviceInfo setHardware(String hardware)

Method Parameters

hardware

getHardware()

public java.lang.String getHardware()

setFirmwareRev( String firmwareRev )

public com.smartdevicelink.proxy.rpc.DeviceInfo setFirmwareRev(String firmwareRev)

Method Parameters

firmwareRev

getFirmwareRev()

public java.lang.String getFirmwareRev()

setOs( String os )

public com.smartdevicelink.proxy.rpc.DeviceInfo setOs(String os)

Method Parameters

os

getOs()

public java.lang.String getOs()

setOsVersion( String osVersion )

public com.smartdevicelink.proxy.rpc.DeviceInfo setOsVersion(String osVersion)

Method Parameters

osVersion

getOsVersion()

public java.lang.String getOsVersion()

setCarrier( String carrier )

public com.smartdevicelink.proxy.rpc.DeviceInfo setCarrier(String carrier)

Method Parameters

carrier

getCarrier()

public java.lang.String getCarrier()

getMaxNumberRFCOMMPorts()

public java.lang.Integer getMaxNumberRFCOMMPorts()

setMaxNumberRFCOMMPorts( Integer maxNumberRFCOMMPorts )

public com.smartdevicelink.proxy.rpc.DeviceInfo setMaxNumberRFCOMMPorts(Integer maxNumberRFCOMMPorts)

Method Parameters

maxNumberRFCOMMPorts

Inherited Methods

From Class Methods
com.smartdevicelink.proxy.RPCStruct getStoreValue, getStore, deserializeJSON, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong, clone, equals, hashCode
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section