CaptureMediaContract
Activity result contract for capturing media (photos and/or videos) using the device camera.
Files are created in external storage directories:
Photos:
{externalFilesDir}/Pictures/Videos:
{externalFilesDir}/Movies/With fallback to cache directories if external storage is unavailable.
After createIntent the caller should persist pictureFile and videoFile paths so they can be restored after process death via the constructor.
Parameters
The capture mode determining what media types can be captured.
Manager for creating temporary files in external storage.
Previously created photo file to restore after process death.
Previously created video file to restore after process death.
Constructors
Properties
The photo destination file created by createIntent, or restored via constructor.
The video destination file created by createIntent, or restored via constructor.