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
SdlDeviceListener.Callback

Interface SdlDeviceListener.Callback

Package
com.smartdevicelink.transport.utl

Overview

Callback for the SdlDeviceListener. It will return if the supplied device makes a bluetooth connection on the SDL UUID RFCOMM channel or not. Most of the time the only callback that matters will be the onTransportConnected.

Methods

onTransportConnected( Context context, BluetoothDevice bluetoothDevice )

public boolean onTransportConnected(Context context,BluetoothDevice bluetoothDevice)

Method Parameters

context
bluetoothDevice
the BT device that successfully connected to SDL's UUID

onTransportDisconnected( BluetoothDevice bluetoothDevice )

public void onTransportDisconnected(BluetoothDevice bluetoothDevice)

Method Parameters

bluetoothDevice

onTransportError( BluetoothDevice bluetoothDevice )

public void onTransportError(BluetoothDevice bluetoothDevice)

Method Parameters

bluetoothDevice
View on GitHub.com
Previous Section Next Section