Companion
Properties
Scan period in milliseconds used when no time period is provided to start.
Scan period in milliseconds used when no time period is provided to start or scanForHardwareId.
List of specific permissions required for discovering and connecting to Nix devices via Bluetooth which can vary depending on Android version. This list provides the correct permissions for the version of Android seen at runtime.
Functions
Checks if the permissions necessary for accessing Bluetooth devices have been granted by the user. If false
, these permissions can be requested using requestBluetoothPermissions.
Launches an new intent to request the user to enable Bluetooth. This requires that the necessary Bluetooth permissions have been granted.
Wrapper around ActivityCompat.requestPermissions to request permissions from the user required for running a search for Bluetooth devices. Results of the request will be provided to your ActivityCompat.OnRequestPermissionsResultCallback.onRequestPermissionsResult callback in your activity. Before making the request, you can use isBluetoothPermissionGranted to check if these permissions have already been granted.
Wrapper around Fragment.requestPermissions to request permissions from the user required for running a search for Bluetooth devices. Results of the request will be provided to your Fragment.onRequestPermissionsResult callback in your fragment. Before making the request, you can use isBluetoothPermissionGranted to check if these permissions have already been granted.