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

Class USBTransportConfig

Hierarchy

java.lang.Object
     com.smartdevicelink.transport.BaseTransportConfig

Package
com.smartdevicelink.transport

Overview

NOTE: This should no longer be used. See the MultplexTransportConfig and guides to understand how to implement USB multiplexing. This class and method of USB connection will be removed in the next major release. If a router service is available to handle multiplexing of the usb transport it will be used, and this app will connect to whatever router service hosts the USB connection.

Fields

Inherited Fields

From Class Fields
com.smartdevicelink.transport.BaseTransportConfig shareConnection, iHeartBeatTimeout

Constructors

USBTransportConfig( Context mainActivity )

NOTE: This should no longer be used. See the MultplexTransportConfig and guides to understand how to implement USB multiplexing. This class and method of USB connection will be removed in the next major release. If a router service is available to handle multiplexing of the usb transport it will be used, and this app will connect to whatever router service hosts the USB connection.

public USBTransportConfig(Context mainActivity)

Parameters

mainActivity
context used to start USB transport

USBTransportConfig( Context mainActivity, UsbAccessory usbAccessory )

NOTE: This should no longer be used. See the MultplexTransportConfig and guides to understand how to implement USB multiplexing. This class and method of USB connection will be removed in the next major release. If a router service is available to handle multiplexing of the usb transport it will be used, and this app will connect to whatever router service hosts the USB connection.

public USBTransportConfig(Context mainActivity,UsbAccessory usbAccessory)

Parameters

mainActivity
context used to start USB transport
usbAccessory
the accessory that was given to this app

USBTransportConfig( Context mainActivity, boolean shareConnection, boolean queryUsbAcc )

NOTE: This should no longer be used. See the MultplexTransportConfig and guides to understand how to implement USB multiplexing. This class and method of USB connection will be removed in the next major release. If a router service is available to handle multiplexing of the usb transport it will be used, and this app will connect to whatever router service hosts the USB connection.

public USBTransportConfig(Context mainActivity,boolean shareConnection,boolean queryUsbAcc)

Parameters

mainActivity
context used to start USB transport
shareConnection
enable other sessions on this app to use this USB connection
queryUsbAcc
attempt to query the USB accessory if none is provided

USBTransportConfig( Context mainActivity, UsbAccessory usbAccessory, boolean shareConnection, boolean queryUsbAcc )

NOTE: This should no longer be used. See the MultplexTransportConfig and guides to understand how to implement USB multiplexing. This class and method of USB connection will be removed in the next major release. If a router service is available to handle multiplexing of the usb transport it will be used, and this app will connect to whatever router service hosts the USB connection.

public USBTransportConfig(Context mainActivity,UsbAccessory usbAccessory,boolean shareConnection,boolean queryUsbAcc)

Parameters

mainActivity
context used to start USB transport
usbAccessory
the accessory that was given to this app
shareConnection
enable other sessions on this app to use this USB connection
queryUsbAcc
attempt to query the USB accessory if none is provided

Methods

getQueryUsbAcc()

public java.lang.Boolean getQueryUsbAcc()

getUSBContext()

public android.content.Context getUSBContext()

getUsbAccessory()

public android.hardware.usb.UsbAccessory getUsbAccessory()

setUsbAccessory( UsbAccessory value )

public void setUsbAccessory(UsbAccessory value)

Parameters

value

getTransportType()

public com.smartdevicelink.transport.enums.TransportType getTransportType()

Inherited Methods

From Class Methods
com.smartdevicelink.transport.BaseTransportConfig getTransportType, shareConnection, getHeartBeatTimeout, setHeartBeatTimeout
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section