Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

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"

DEVICE_OS

public static final java.lang.String DEVICE_OS
Constant Value
"Android"

Inherited Fields

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

Constructors

DeviceInfo()

Constructs a new DeviceInfo object indicated by the Hashtable parameter

public DeviceInfo()

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

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

Parameters

hash

Methods

setHardware( String hardware )

public void setHardware(String hardware)

Parameters

hardware

getHardware()

public java.lang.String getHardware()

setFirmwareRev( String firmwareRev )

public void setFirmwareRev(String firmwareRev)

Parameters

firmwareRev

getFirmwareRev()

public java.lang.String getFirmwareRev()

setOs( String os )

public void setOs(String os)

Parameters

os

getOs()

public java.lang.String getOs()

setOsVersion( String osVersion )

public void setOsVersion(String osVersion)

Parameters

osVersion

getOsVersion()

public java.lang.String getOsVersion()

setCarrier( String carrier )

public void setCarrier(String carrier)

Parameters

carrier

getCarrier()

public java.lang.String getCarrier()

getMaxNumberRFCOMMPorts()

public java.lang.Integer getMaxNumberRFCOMMPorts()

setMaxNumberRFCOMMPorts( Integer maxNumberRFCOMMPorts )

public void setMaxNumberRFCOMMPorts(Integer maxNumberRFCOMMPorts)

Parameters

maxNumberRFCOMMPorts

Inherited Methods

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