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
SdlPacketFactory

Class SdlPacketFactory

Hierarchy

java.lang.Object

Package
com.smartdevicelink.protocol

Constructors

SdlPacketFactory()

public SdlPacketFactory()

Methods

createStartSession( SessionType serviceType, int messageID, byte version, byte sessionID, boolean encrypted )

public static com.smartdevicelink.protocol.SdlPacket createStartSession(SessionType serviceType,int messageID,byte version,byte sessionID,boolean encrypted)

Method Parameters

serviceType
messageID
version
sessionID
encrypted

createHeartbeat( SessionType serviceType, byte sessionID, byte version )

public static com.smartdevicelink.protocol.SdlPacket createHeartbeat(SessionType serviceType,byte sessionID,byte version)

Method Parameters

serviceType
sessionID
version

createHeartbeatACK( SessionType serviceType, byte sessionID, byte version )

public static com.smartdevicelink.protocol.SdlPacket createHeartbeatACK(SessionType serviceType,byte sessionID,byte version)

Method Parameters

serviceType
sessionID
version

createStartSessionACK( SessionType serviceType, byte sessionID, int messageID, byte version )

public static com.smartdevicelink.protocol.SdlPacket createStartSessionACK(SessionType serviceType,byte sessionID,int messageID,byte version)

Method Parameters

serviceType
sessionID
messageID
version

createStartSessionNACK( SessionType serviceType, byte sessionID, int messageID, byte version )

public static com.smartdevicelink.protocol.SdlPacket createStartSessionNACK(SessionType serviceType,byte sessionID,int messageID,byte version)

Method Parameters

serviceType
sessionID
messageID
version

createEndSession( SessionType serviceType, byte sessionID, int messageID, byte version, byte[] payload )

public static com.smartdevicelink.protocol.SdlPacket createEndSession(SessionType serviceType,byte sessionID,int messageID,byte version,byte[] payload)

Method Parameters

serviceType
sessionID
messageID
version
payload

createEndSession( SessionType serviceType, byte sessionID, int messageID, byte version, int hashID )

public static com.smartdevicelink.protocol.SdlPacket createEndSession(SessionType serviceType,byte sessionID,int messageID,byte version,int hashID)

Method Parameters

serviceType
sessionID
messageID
version
hashID

createSingleSendData( SessionType serviceType, byte sessionID, int dataLength, int messageID, byte version, byte[] payload, boolean encrypted )

public static com.smartdevicelink.protocol.SdlPacket createSingleSendData(SessionType serviceType,byte sessionID,int dataLength,int messageID,byte version,byte[] payload,boolean encrypted)

Method Parameters

serviceType
sessionID
dataLength
messageID
version
payload
encrypted

createMultiSendDataFirst( SessionType serviceType, byte sessionID, int messageID, byte version, byte[] payload, boolean encrypted )

public static com.smartdevicelink.protocol.SdlPacket createMultiSendDataFirst(SessionType serviceType,byte sessionID,int messageID,byte version,byte[] payload,boolean encrypted)

Method Parameters

serviceType
sessionID
messageID
version
payload
encrypted

createMultiSendDataRest( SessionType serviceType, byte sessionID, int dataLength, byte frameSequenceNumber, int messageID, byte version, byte[] payload, int offset, int length, boolean encrypted )

public static com.smartdevicelink.protocol.SdlPacket createMultiSendDataRest(SessionType serviceType,byte sessionID,int dataLength,byte frameSequenceNumber,int messageID,byte version,byte[] payload,int offset,int length,boolean encrypted)

Method Parameters

serviceType
sessionID
dataLength
frameSequenceNumber
messageID
version
payload
offset
length
encrypted

createRegisterSecondaryTransport( byte sessionID, byte version )

public static com.smartdevicelink.protocol.SdlPacket createRegisterSecondaryTransport(byte sessionID,byte version)

Method Parameters

sessionID
version

createBinaryFrameHeader( byte rpcType, int functionID, int corrID, int jsonSize )

public static com.smartdevicelink.protocol.BinaryFrameHeader createBinaryFrameHeader(byte rpcType,int functionID,int corrID,int jsonSize)

Method Parameters

rpcType
functionID
corrID
jsonSize

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