Documentation
¶
Overview ¶
Camera capture session lifecycle example.
Demonstrates the complete Camera2 capture pipeline: creating a manager, listing cameras, reading characteristics, opening a device with callbacks, creating a capture request and session, starting a repeating request, and orderly cleanup. A sync.WaitGroup gates the repeating-request call until the session reports ready.
Because the camera pipeline requires an ANativeWindow from an Android Surface, this example documents the window-dependent steps in comments and executes only the steps that work without a live Surface.
Prerequisites:
- Android device with API level 24+.
- android.permission.CAMERA must be granted at runtime.
Click to show internal directories.
Click to hide internal directories.