hasScanPermissions

@RequiresApi(value = 31)
fun hasScanPermissions(context: Context): Boolean

Checks if the app has the necessary permissions to perform BLE scanning.

Return

True if the scan permission is granted, false otherwise.

Parameters

context

The application context.