MissingPermissionException

class MissingPermissionException(val permissions: Array<String>, val isBluetoothEnabled: Boolean, val isLocationEnabled: Boolean, val isPreciseLocationEnabled: Boolean) : BleServiceException

Exception thrown when required permissions or system services are missing for BLE operations.

This exception is triggered when the application lacks necessary Android permissions or when required system services (like Bluetooth or Location) are disabled, preventing proper functioning of BLE features. This exception provides detailed information about which specific permissions are missing and the state of required system services.

This can also be used conveniently with com.bullitt.sdk.platform.PermissionUtil.verifyRequiredPermissions to obtain the list of missing permissions and request for them from the user.

See also

Constructors

Link copied to clipboard
constructor(permissions: Array<String>, isBluetoothEnabled: Boolean, isLocationEnabled: Boolean, isPreciseLocationEnabled: Boolean)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

Flag indicating whether Bluetooth is enabled on the device.

Link copied to clipboard

Flag indicating whether Location services are enabled on the device.

Link copied to clipboard

Flag indicating whether precise location (GPS) is enabled.

Link copied to clipboard
open val message: String?
Link copied to clipboard

Array of permission strings that are missing or not granted.