public class M_Util
extends java.lang.Object
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 void |
requestPermissions(android.app.Activity context,
int requestCode) |
static boolean |
shouldShowRequestPermissionRationale(android.app.Activity context) |
static void |
startNativeScan(android.bluetooth.BluetoothAdapter adapter,
int scanMode,
Interval scanReportDelay,
java.util.List<NativeScanFilter> filterList,
L_Util.ScanCallback listener) |
public static boolean shouldShowRequestPermissionRationale(android.app.Activity context)
public static void requestPermissions(android.app.Activity context, int requestCode)
public static void startNativeScan(android.bluetooth.BluetoothAdapter adapter, int scanMode, Interval scanReportDelay, java.util.List<NativeScanFilter> filterList, L_Util.ScanCallback listener)
public static android.bluetooth.BluetoothGatt connect(android.bluetooth.BluetoothDevice device, boolean autoConnect, android.content.Context context, android.bluetooth.BluetoothGattCallback callback)