public class SdlDeviceListener extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SdlDeviceListener.Callback
Callback for the SdlDeviceListener.
|
| Constructor and Description |
|---|
SdlDeviceListener(Context context,
BluetoothDevice device,
SdlDeviceListener.Callback callback) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
hasSDLConnected(Context context,
String address)
Checks to see if a device address has connected to SDL before.
|
static boolean |
isFeatureSupported(List<SdlAppInfo> sdlAppInfoList)
This method will check the current device and list of SDL enabled apps to derive if the
feature can be supported.
|
boolean |
isRunning()
Check to see if this instance is in the middle of running or not
|
static void |
setSDLConnectedStatus(Context context,
String address,
boolean hasSDLConnected)
Set the connection establishment status of the particular device
|
void |
start()
This will start the SDL Device Listener with two paths.
|
public SdlDeviceListener(Context context, BluetoothDevice device, SdlDeviceListener.Callback callback)
public void start()
public boolean isRunning()
public static void setSDLConnectedStatus(Context context, String address, boolean hasSDLConnected)
address - address of the device in questionhasSDLConnected - true if a connection has been established, false if notpublic static boolean hasSDLConnected(Context context, String address)
address - the mac address of the device in questionpublic static boolean isFeatureSupported(List<SdlAppInfo> sdlAppInfoList)
sdlAppInfoList - current list of SDL enabled applications on the device