Service Layer low complexity Shared Component mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Utility service responsible for requesting, caching, and re-checking microphone permission on iOS and Android. Surfaces a structured PermissionStatus enum consumed by the Speech Input Widget to determine which UI state to render. Handles the edge case where a user grants permission after initially denying it (requires navigating to system settings).

Feature: Speech-to-Text Input

speech-permission-manager

Responsibilities

  • Request microphone permission on first use and cache the result in local state
  • Re-check permission on app resume in case the user changed it in system settings
  • Expose a human-readable reason string for the permission rationale dialog

Interfaces

Future<PermissionStatus> requestMicrophonePermission()
Future<PermissionStatus> checkMicrophonePermission()
Future<void> openAppSettings()