takePhoto

suspend fun takePhoto(photoSettings: PhotoSettings = definedExternally): Blob(source)

The takePhoto() method of the device sourcing a MediaStreamTrack and returns a Promise that resolves with a Blob containing the data.

MDN Reference