usePhotoOutput

function usePhotoOutput(__namedParameters?: Partial<PhotoOutputOptions>): CameraPhotoOutput

Use a CameraPhotoOutput for capturing Photos.

The returned CameraPhotoOutput can be passed to a Camera to enable photo capture. Photos can then be captured via capturePhoto(...).

Example

const photoOutput = usePhotoOutput({
  targetResolution: CommonResolutions.UHD_4_3,
  qualityPrioritization: 'quality',
})

// ...
const photo = await photoOutput.capturePhoto({ flashMode: 'on' }, {})
// ...
photo.dispose()

On this page

No Headings