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
Android Documentation
SdlMsgVersion

Class SdlMsgVersion

Hierarchy

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

Package
com.smartdevicelink.proxy.rpc

Overview

Specifies the version number of the SDL V4 interface. This is used by both the application and SDL to declare what interface version each is using.

Parameter List

Name Type Description SmartDeviceLink Ver. Available
majorVersion Integer
  • minvalue="1"
  • maxvalue="10"
SmartDeviceLink 1.0
minorVersion Integer
  • minvalue="0"
  • maxvalue="1000"
SmartDeviceLink 1.0

Fields

KEY_MAJOR_VERSION

public static final java.lang.String KEY_MAJOR_VERSION
Constant Value
"majorVersion"

KEY_MINOR_VERSION

public static final java.lang.String KEY_MINOR_VERSION
Constant Value
"minorVersion"

KEY_PATCH_VERSION

public static final java.lang.String KEY_PATCH_VERSION
Constant Value
"patchVersion"

Inherited Fields

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

Constructors

SdlMsgVersion()

Constructs a newly allocated SdlMsgVersion object

public SdlMsgVersion()

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

Constructs a newly allocated SdlMsgVersion object indicated by the Hashtable parameter

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

Constructor Parameters

hash
The Hashtable to use

SdlMsgVersion( Integer majorVersion, Integer minorVersion )

Constructs a newly allocated SdlMsgVersion object

public SdlMsgVersion(Integer majorVersion,Integer minorVersion)

Constructor Parameters

majorVersion
minvalue="1" and maxvalue="10"
minorVersion
min: 0; max: 1000

SdlMsgVersion( Version version )

Constructs a newly allocated SdlMsgVersion object

public SdlMsgVersion(Version version)

Constructor Parameters

version
Creates a new RPC struct SdlMsgVersion based on the utility class

Methods

format( Version rpcVersion, boolean formatParams )

public void format(Version rpcVersion,boolean formatParams)

Method Parameters

rpcVersion
formatParams

getMajorVersion()

Get major version

  • minvalue="1"
  • maxvalue="10"

public java.lang.Integer getMajorVersion()

setMajorVersion( Integer majorVersion )

Set major version

  • minvalue="1"
  • maxvalue="10"

public com.smartdevicelink.proxy.rpc.SdlMsgVersion setMajorVersion(Integer majorVersion)

Method Parameters

majorVersion
minvalue="1" and maxvalue="10"

getMinorVersion()

Get minor version

  • minvalue="0"
  • maxvalue="1000"

public java.lang.Integer getMinorVersion()

setMinorVersion( Integer minorVersion )

Set minor version

  • minvalue="0"
  • maxvalue="1000"

public com.smartdevicelink.proxy.rpc.SdlMsgVersion setMinorVersion(Integer minorVersion)

Method Parameters

minorVersion
min: 0; max: 1000

getPatchVersion()

Get patch version

  • minvalue="0"
  • maxvalue="1000"

public java.lang.Integer getPatchVersion()

setPatchVersion( Integer patchVersion )

Set patch version

  • minvalue="0"
  • maxvalue="1000"

public com.smartdevicelink.proxy.rpc.SdlMsgVersion setPatchVersion(Integer patchVersion)

Method Parameters

patchVersion
min: 0; max: 1000

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