SelfieCheckViewModel

class SelfieCheckViewModel(identityIssuer: String, externalScope: CoroutineScope? = null)

View model for the selfie check process initialization, orchestration, and data exchange with UI.

Parameters

identityIssuer

The name or identification of the photo identity issuer receiving the result of the person image verification.

externalScope

optional coroutine scope to be used by the view model async routines.

Constructors

Link copied to clipboard
constructor(identityIssuer: String, externalScope: CoroutineScope? = null)

Properties

Link copied to clipboard
var capturedFaceImage: ByteString?

Public access to the latest captured frame.

Link copied to clipboard
val countdownProgress: StateFlow<Float>
Link copied to clipboard
val countdownSeconds: StateFlow<Int>
Link copied to clipboard
Link copied to clipboard
val isLandscape: StateFlow<Boolean>
Link copied to clipboard
val stepSuccessEvent: SharedFlow<Unit>

Functions

Link copied to clipboard

Resets the ViewModel to its initial state and prepares for a new selfie check process. This is the public function to be called to restart the selfie check.