CaptureMediaContract
constructor(mode: CaptureMediaContract.Mode, fileManager: StreamFileManager = StreamFileManager(), onFilesCreated: (pictureFile: File?, videoFile: File?) -> Unit? = null)
Parameters
mode
The capture mode determining what media types can be captured.
fileManager
Manager for creating temporary files in external storage.
onFilesCreated
Optional callback invoked inside createIntent after destination files are created, giving the caller an opportunity to persist the file references before the external activity starts.