verifyBluetoothAdapterStateAsync

@RequiresPermission(value = "android.permission.BLUETOOTH_ADMIN")
fun verifyBluetoothAdapterStateAsync(callback: PermissionRequestCallback? = null)

Checks if the bluetooth adapter is active

If not, automatically requests it's activation to the user

Parameters

callback

Called with a boolean parameter indicating the activation request state

See also

For a variation using coroutines suspended functions