Package 

Enum DoorstepPermission

  • All Implemented Interfaces:
    java.io.Serializable , kotlin.Comparable

    
    public enum DoorstepPermission
    extends Enum<DoorstepPermission>
                        

    A runtime-permission bucket the SDK can request, named in Android's own vocabulary rather than a cross-platform lowest common denominator.

    One bucket maps to one user-visible OS decision, which is why it is a bucket and not a permission string: "foreground location" is two manifest permissions (Manifest.permission.ACCESS_FINE_LOCATION + Manifest.permission.ACCESS_COARSE_LOCATION) behind a single dialog, and BLE scanning is a different pair of manifest permissions depending on API level.

    Buckets are the unit of the whitelist accepted by DoorstepAI.requestPermissions and DoorstepAI.checkPermissions: only the buckets you name are ever requested. Omitting the whitelist requests all of them.

    Cross-platform note: iOS has its own DoorstepPermission with locationWhenInUse / locationAlways / motionFitness / bluetooth. The two location buckets and the state vocabulary (DoorstepPermissionState) are deliberately identical; the rest differ because the platforms differ. NEARBY_WIFI_DEVICES and NOTIFICATIONS have no iOS counterpart in this SDK, and iOS's motionFitness has no Android counterpart beyond ACTIVITY_RECOGNITION (Android's IMU streams need no runtime permission at all).