Skip to content

#14 Add native camera-permission handling (no third-party package needed)#15

Merged
LahaLuhem merged 10 commits into
mainfrom
feature/#14-🛂-include-perm-handler
Jun 23, 2026

Hidden character warning

The head ref may contain hidden characters: "feature/#14-\ud83d\udec2-include-perm-handler"
Merged

#14 Add native camera-permission handling (no third-party package needed)#15
LahaLuhem merged 10 commits into
mainfrom
feature/#14-🛂-include-perm-handler

Conversation

@LahaLuhem

Copy link
Copy Markdown
Owner

New public API

  • TextSightController.requestCameraPermission() — drives the system prompt when undecided
  • TextSightController.checkCameraPermission() — prompt-free status read (e.g. to gate a priming screen)
  • CameraPermissionStatus { granted, denied, permanentlyDenied }

start() and all existing APIs are unchanged.

Native

  • iOSAVCaptureDevice.requestAccess (system frameworks only).
  • Android — plugin is now ActivityAware with a RequestPermissionsResultListener;
    distinguishes denied (re-askable) from permanentlyDenied via shouldShowRequestPermissionRationale.

Also

Pigeon control channel extended + regenerated; example migrated off permission_handler
(dependency removed); README permission section rewritten; unit tests for the new methods.
Consumers still declare NSCameraUsageDescription (iOS); the Android CAMERA manifest entry
ships with the plugin.

closes #14

@LahaLuhem LahaLuhem merged commit 2ac7e8b into main Jun 23, 2026
15 checks passed
@LahaLuhem LahaLuhem deleted the feature/#14-🛂-include-perm-handler branch June 23, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add opt-in native camera-permission request (no third-party dep)

1 participant