public final class LocalBluetoothManager extends Object
getInstance(android.content.Context, com.android.settingslib.bluetooth.LocalBluetoothManager.BluetoothManagerCallback)
will return null
if there is no Bluetooth adapter on this device, and callers must be
prepared to handle this case.Modifier and Type | Class and Description |
---|---|
static interface |
LocalBluetoothManager.BluetoothManagerCallback |
Modifier and Type | Method and Description |
---|---|
LocalBluetoothAdapter |
getBluetoothAdapter() |
CachedBluetoothDeviceManager |
getCachedDeviceManager() |
Context |
getContext() |
BluetoothEventManager |
getEventManager() |
Context |
getForegroundActivity() |
static LocalBluetoothManager |
getInstance(Context context,
LocalBluetoothManager.BluetoothManagerCallback onInitCallback) |
LocalBluetoothProfileManager |
getProfileManager() |
boolean |
isForegroundActivity() |
void |
setForegroundActivity(Context context) |
public static LocalBluetoothManager getInstance(Context context, LocalBluetoothManager.BluetoothManagerCallback onInitCallback)
public LocalBluetoothAdapter getBluetoothAdapter()
public Context getContext()
public Context getForegroundActivity()
public boolean isForegroundActivity()
public void setForegroundActivity(Context context)
public CachedBluetoothDeviceManager getCachedDeviceManager()
public BluetoothEventManager getEventManager()
public LocalBluetoothProfileManager getProfileManager()