Permission Util
object PermissionUtil
Utility object that provides methods to check and verify permissions required for Bluetooth and location functionality across different Android API levels.
Functions
Link copied to clipboard
Checks if location permissions (both fine and coarse) are not granted.
Link copied to clipboard
Checks if background location permission is enabled. This method is only available on Android Q (API 29) and above.
Link copied to clipboard
Checks if Bluetooth is enabled on the device.
Link copied to clipboard
Checks if Location services are enabled on the device.
Link copied to clipboard
Checks if precise location is enabled through GPS provider.
Link copied to clipboard
Verifies all required permissions and enabled services based on the device's Android version.