public class BlaubotBluetoothDeviceDiscoveryReceiver
extends BroadcastReceiver
| Constructor and Description |
|---|
BlaubotBluetoothDeviceDiscoveryReceiver(boolean fetchUUIDsAutomatically) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBluetoothDiscoveryListener(IBluetoothDiscoveryListener bluetoothDiscoveryListener) |
static IntentFilter |
createBluetoothIntentFilter()
Creates an
IntentFilter for the bluetooth intents needed by this BroadcastReceiver. |
BluetoothDevice |
getBluetoothDeviceByAddress(java.lang.String macAddress)
The device object for the given macAddress, if the device was already discovered.
|
java.util.List<BluetoothDevice> |
getDiscoveredBluetoothDevices() |
boolean |
isDone() |
void |
onReceive(Context context,
Intent intent) |
void |
removeBluetoothDiscoveryListener(IBluetoothDiscoveryListener bluetoothDiscoveryListener) |
public BlaubotBluetoothDeviceDiscoveryReceiver(boolean fetchUUIDsAutomatically)
public boolean isDone()
public void addBluetoothDiscoveryListener(IBluetoothDiscoveryListener bluetoothDiscoveryListener)
public void removeBluetoothDiscoveryListener(IBluetoothDiscoveryListener bluetoothDiscoveryListener)
public void onReceive(Context context,
Intent intent)
public java.util.List<BluetoothDevice> getDiscoveredBluetoothDevices()
public BluetoothDevice getBluetoothDeviceByAddress(java.lang.String macAddress)
macAddress - the macAddress to search forpublic static IntentFilter createBluetoothIntentFilter()
IntentFilter for the bluetooth intents needed by this BroadcastReceiver.IntentFilter