CameraAutoShotContract Class

class CameraAutoShotContract : ActivityResultContract<CameraAutoShotContract.Params, List<Uri>>

Launches the camera with a delay after all required automatic capture checks pass.

Constructors

CameraAutoShotContract

constructor()

Types

Params

data class Params(val camera: CameraContract.CameraParams, val autoShotDelayMillis: Int)

Camera launch camera parameters and a autoShotDelayMillis from 0 through 10,000. The duration applies to automatic capture. When document stability is required, the outline must match across the detector’s minimum number of frames before the delay starts.

Functions

createIntent

open override fun createIntent(context: Context, input: CameraAutoShotContract.Params): Intent

parseResult

open override fun parseResult(resultCode: Int, intent: Intent?): List<Uri>
Top