LunaID

object LunaID

Types

Link copied to clipboard
sealed class EngineInitStatus
Link copied to clipboard
sealed class Event
Link copied to clipboard
data class FinishCancelledData(val videoPath: String?)
Link copied to clipboard
sealed class FinishFailedData
Link copied to clipboard
sealed class FinishResult
Link copied to clipboard
data class FinishSuccessData(val bestShot: BestShot, val videoPath: String?)
Link copied to clipboard
Link copied to clipboard
interface LunaState
Link copied to clipboard
data class ShowCameraParams(val disableErrors: Boolean = DISABLE_ERRORS_DEFAULT, val recordVideo: Boolean = RECORD_VIDEO_DEFAULT, val videoQuality: TextureMovieEncoder.VideoQuality = VideoQuality.LOW, val recordingTimeMillis: Long = 0, val ignoreVideoWithoutFace: Boolean = IGNORE_VIDEO_WITHOUT_FACE_DEFAULT, val logToFile: Boolean = LOG_TO_FILE_DEFAULT, val borderDistanceStrategy: InitBorderDistancesStrategy = InitBorderDistancesStrategy.Default, val statusBarColorHex: Int = Color.BLACK) : Parcelable

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun activateLicense(app: Application, lunaConfig: LunaConfig, apiHumanConfig: ApiHumanConfig? = null)

try activate license

Link copied to clipboard
fun allEvents(maxMessages: Int = 1): Flow<LunaID.Event>
Link copied to clipboard
Link copied to clipboard
fun init(app: Application, lunaConfig: LunaConfig, apiHumanConfig: ApiHumanConfig? = null)
Link copied to clipboard
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.