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
ProtocolMessage

Class ProtocolMessage

Hierarchy

java.lang.Object

Package
com.smartdevicelink.protocol

Constructors

ProtocolMessage()

public ProtocolMessage()

Methods

getVersion()

public byte getVersion()

setVersion( byte version )

public void setVersion(byte version)

Method Parameters

version

getSessionID()

public byte getSessionID()

setSessionID( byte sessionID )

public void setSessionID(byte sessionID)

Method Parameters

sessionID

getData()

public byte getData()

setData( byte[] data )

public void setData(byte[] data)

Method Parameters

data

setData( byte[] data, int length )

public void setData(byte[] data,int length)

Method Parameters

data
length

setData( byte[] data, int offset, int length )

public void setData(byte[] data,int offset,int length)

Method Parameters

data
offset
length

getBulkData()

public byte getBulkData()

setBulkDataNoCopy( byte[] bulkData )

public void setBulkDataNoCopy(byte[] bulkData)

Method Parameters

bulkData

setBulkData( byte[] bulkData )

public void setBulkData(byte[] bulkData)

Method Parameters

bulkData

setBulkData( byte[] bulkData, int length )

public void setBulkData(byte[] bulkData,int length)

Method Parameters

bulkData
length

getSessionType()

public com.smartdevicelink.protocol.enums.SessionType getSessionType()

setSessionType( SessionType sessionType )

public void setSessionType(SessionType sessionType)

Method Parameters

sessionType

getMessageType()

public com.smartdevicelink.protocol.enums.MessageType getMessageType()

setMessageType( MessageType messageType )

public void setMessageType(MessageType messageType)

Method Parameters

messageType

getRPCType()

public byte getRPCType()

setRPCType( byte _rpcType )

public void setRPCType(byte _rpcType)

Method Parameters

_rpcType

getFunctionID()

public int getFunctionID()

setFunctionID( int _functionID )

public void setFunctionID(int _functionID)

Method Parameters

_functionID

getCorrID()

public int getCorrID()

setCorrID( int _correlationID )

public void setCorrID(int _correlationID)

Method Parameters

_correlationID

getJsonSize()

public int getJsonSize()

setJsonSize( int _jsonSize )

public void setJsonSize(int _jsonSize)

Method Parameters

_jsonSize

setPayloadProtected( boolean bVal )

public void setPayloadProtected(boolean bVal)

Method Parameters

bVal

getPayloadProtected()

public boolean getPayloadProtected()

setPriorityCoefficient( int priority )

Set the priority for this packet. The lower the number the higher the priority.
0 is the highest priority and the default.

public void setPriorityCoefficient(int priority)

Method Parameters

priority
the priority of this message

getPrioirtyCoefficient()

Deprecated

public int getPrioirtyCoefficient()

getPriorityCoefficient()

public int getPriorityCoefficient()

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section