enum PermissionCapability {
  notifications,
  foregroundLocation,
  backgroundLocation,
  camera,
  microphone,
  phoneState,
  activityRecognition,
  bluetooth,
}

extension PermissionCapabilityDetails on PermissionCapability {
  String get title => switch (this) {
        PermissionCapability.notifications => 'Security notifications',
        PermissionCapability.foregroundLocation => 'Precise location',
        PermissionCapability.backgroundLocation => 'Background location',
        PermissionCapability.camera => 'Incident camera',
        PermissionCapability.microphone => 'Voice and audio protection',
        PermissionCapability.phoneState => 'SIM and network monitoring',
        PermissionCapability.activityRecognition => 'Motion detection',
        PermissionCapability.bluetooth => 'Trusted Bluetooth devices',
      };

  String get disclosure => switch (this) {
        PermissionCapability.notifications =>
          'Used to show theft alerts, foreground-service status and remote command results.',
        PermissionCapability.foregroundLocation =>
          'Used to show the device position while tracking is visible and active.',
        PermissionCapability.backgroundLocation =>
          'Used to continue user-enabled anti-theft tracking when the app is not visible.',
        PermissionCapability.camera =>
          'Used only for user-enabled incident capture and remote camera commands with visible disclosure.',
        PermissionCapability.microphone =>
          'Used for user-enabled voice commands and incident audio with a foreground notification.',
        PermissionCapability.phoneState =>
          'Used where Android permits to detect SIM subscription and network-state changes.',
        PermissionCapability.activityRecognition =>
          'Used to distinguish stationary, walking and moving states for theft detection and battery efficiency.',
        PermissionCapability.bluetooth =>
          'Used to monitor user-selected trusted Bluetooth devices and disconnection alerts.',
      };
}
