IntroPermissions

Aggregated permission states needed by the intro onboarding flow.

Each entry is the full PermissionUiState — status, request action, and open-settings action — deliberately not narrowed to a granted/not-granted boolean. The distinction is load-bearing: once a permission reaches org.meshtastic.core.ui.util.PermissionStatus.PERMANENTLY_DENIED the system stops showing its dialog, so a screen that only knows isGranted renders a primary button that silently does nothing when tapped. Carrying the status lets each screen offer the recovery that will actually work.

Properties

Link copied to clipboard
Link copied to clipboard

True where BLE scanning is gated by the location permission rather than the Android 12 "Nearby devices" permissions (API < 31). The Bluetooth screen asks for a different permission on those devices, so it must say so rather than naming a permission the user will never see.

Link copied to clipboard

False on hardware with no Bluetooth LE (e.g. Android XR), where there is nothing for the Bluetooth screen to ask.

Link copied to clipboard

True where a notification channel can be allowed to override Do Not Disturb, so the critical-alerts step applies.

Link copied to clipboard
open val inBrowser: Boolean

True in a browser, which owns the permissions: Bluetooth and serial radios are picked in its chooser at connect time, and a blocked permission comes back only through its site settings, which a page cannot open.

Link copied to clipboard
Link copied to clipboard

Null on platforms / API levels where notifications are not gated by a runtime permission (pre-Android 13).