public class O_Util
extends java.lang.Object
Constructor and Description |
---|
O_Util() |
Modifier and Type | Method and Description |
---|---|
static android.bluetooth.BluetoothGatt |
connect(android.bluetooth.BluetoothDevice device,
boolean autoConnect,
android.content.Context context,
android.bluetooth.BluetoothGattCallback callback) |
static android.bluetooth.BluetoothGatt |
connect(android.bluetooth.BluetoothDevice device,
boolean autoConnect,
android.content.Context context,
android.bluetooth.BluetoothGattCallback callback,
android.os.Handler handler) |
static boolean |
isHighSpeedSupported(android.bluetooth.BluetoothAdapter adapter) |
static boolean |
isLongRangeSupported(android.bluetooth.BluetoothAdapter adapter) |
static void |
readPhyLayer(android.bluetooth.BluetoothGatt gatt) |
static void |
setPhyLayer(android.bluetooth.BluetoothGatt gatt,
int txPhy,
int rxPhy,
int phyOptions) |
static boolean |
startScan(android.bluetooth.BluetoothAdapter adapter,
int scanMode,
Interval scanReportDelay,
java.util.List<NativeScanFilter> filterList,
android.app.PendingIntent pendingIntent) |
static boolean |
stopScan(android.bluetooth.BluetoothAdapter adapter,
android.app.PendingIntent pendingIntent) |
public static boolean isHighSpeedSupported(android.bluetooth.BluetoothAdapter adapter)
public static boolean isLongRangeSupported(android.bluetooth.BluetoothAdapter adapter)
public static void setPhyLayer(android.bluetooth.BluetoothGatt gatt, int txPhy, int rxPhy, int phyOptions)
public static void readPhyLayer(android.bluetooth.BluetoothGatt gatt)
public static boolean startScan(android.bluetooth.BluetoothAdapter adapter, int scanMode, Interval scanReportDelay, java.util.List<NativeScanFilter> filterList, android.app.PendingIntent pendingIntent)
public static boolean stopScan(android.bluetooth.BluetoothAdapter adapter, android.app.PendingIntent pendingIntent)
public static android.bluetooth.BluetoothGatt connect(android.bluetooth.BluetoothDevice device, boolean autoConnect, android.content.Context context, android.bluetooth.BluetoothGattCallback callback)
public static android.bluetooth.BluetoothGatt connect(android.bluetooth.BluetoothDevice device, boolean autoConnect, android.content.Context context, android.bluetooth.BluetoothGattCallback callback, android.os.Handler handler)