LunaID

object LunaID

Types

Link copied to clipboard
sealed class Effect
Link copied to clipboard
sealed class EngineInitStatus
Link copied to clipboard
sealed class Event
Link copied to clipboard
data class ShowCameraParams(val disableErrors: Boolean = DISABLE_ERRORS_DEFAULT, val logToFile: Boolean = LOG_TO_FILE_DEFAULT, val recordVideo: Boolean = RECORD_VIDEO_DEFAULT, val recordingTimeMillis: Long = 0, val ignoreVideoWithoutFace: Boolean = IGNORE_VIDEO_WITHOUT_FACE_DEFAULT, val borderDistanceStrategy: BorderDistancesStrategy = BorderDistancesStrategy.Default, val disableAutoFocus: Boolean = DISABLE_AUTO_FOCUS_DEFAULT, val checkSecurity: Boolean = DEFAULT_CHECK_SECURITY, val preferredAnalysisFrameWidth: Int = DEFAULT_ANALYSIS_FRAME_WIDTH, val preferredAnalysisFrameHeight: Int = DEFAULT_ANALYSIS_FRAME_HEIGHT, val aspectRatioStrategy: LunaAspectRatioStrategy = DEFAULT_ASPECT_RATIO_STRATEGY, val livenessType: LivenessType = DEFAULT_LIVENESS_TYPE, val usePrimaryFaceTracking: Boolean = DEFAULT_USE_PRIMARY_FACE_TRACKING) : Parcelable

Properties

Link copied to clipboard
Link copied to clipboard
val bestShot: MutableStateFlow<LunaID.Event.BestShotFound?>
Link copied to clipboard
val bestShots: MutableStateFlow<LunaID.Event.BestShotsFound?>
Link copied to clipboard
val currentInteractionType: MutableStateFlow<Int?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copyAssetToInternalStorage(context: Context, assetName: String, destFileName: String): String
Link copied to clipboard
Link copied to clipboard
fun init(app: Application, lunaConfig: LunaConfig, apiHumanConfig: ApiHumanConfig? = null)
Link copied to clipboard
fun initEngine(app: Application, lunaConfig: LunaConfig, apiHumanConfig: ApiHumanConfig? = null)
Link copied to clipboard
fun sendCommand(command: Command)
Link copied to clipboard
fun showCamera(context: Context, params: LunaID.ShowCameraParams = ShowCameraParams(), interactions: Interactions = Interactions(), commands: Commands = Commands())

Launches camera screen.

Link copied to clipboard