object MediaCapture
Main media capture object.
enum class CaptureErrorCode |
fun addPendingCaptureListener(listener: (Result<List<MediaFile>, CaptureException>) -> Unit): Unit
Add listeners for pending capture Cordova events. |
|
suspend fun captureAudio(limit: Number = 1, duration: Number? = null): Result<List<MediaFile>, CaptureException>
Capture audio file(s). |
|
suspend fun captureImage(limit: Number = 1): Result<List<MediaFile>, CaptureException>
Capture image file(s). |
|
suspend fun captureVideo(limit: Number = 1, duration: Number? = null, lowQuality: Boolean = false): Result<List<MediaFile>, CaptureException>
Capture video file(s). |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |