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

Properties

Link copied to clipboard
Link copied to clipboard
val bestShot: MutableStateFlow<LunaID.Event.BestShotFound?>
Link copied to clipboard
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
Link copied to clipboard
val performanceReportJson: MutableSharedFlow<String>
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun dumpLogs(context: Context, outputFile: File = File(context.filesDir, "logs.logcat"))
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun initEngine(app: Application, lunaConfig: LunaConfig, apiHumanConfig: ApiHumanConfig? = null, license: File? = null, timeoutMillis: Long)
fun initEngine(context: Context, lunaConfig: LunaConfig, apiHumanConfig: ApiHumanConfig? = null, license: File? = null, timeoutMillis: Long)
Link copied to clipboard
fun initEngineForTest(context: Context, lunaConfig: LunaConfig, apiHumanConfig: ApiHumanConfig? = null, license: File? = null, timeoutMillis: Long)
Link copied to clipboard
@VisibleForTesting(otherwise = 5)
fun launchIsolatedTests(times: Int, skipTimes: Int, bitmap: Bitmap, width: Int, height: Int): Map<String, List<Long>>?
Link copied to clipboard
@VisibleForTesting(otherwise = 5)
fun processBitmap(bitmap: Bitmap)
Link copied to clipboard
suspend fun resetLicenseCache(context: Context): Boolean
Link copied to clipboard
fun saveToInternalStorage(context: Context, filename: String, content: String)
Link copied to clipboard
fun sendCommand(command: Command)
Link copied to clipboard
@VisibleForTesting(otherwise = 5)
fun setLogPerformance(value: Boolean)
Link copied to clipboard
@VisibleForTesting(otherwise = 5)
fun setTestShowCameraParams(context: Context, showCameraParams: ShowCameraParams = ShowCameraParams(), interactions: Interactions = Interactions(), commands: Commands = Commands())
Link copied to clipboard
fun showCamera(context: Context, params: ShowCameraParams = ShowCameraParams(), interactions: Interactions = Interactions(), commands: Commands = Commands())

Launches camera screen.

Link copied to clipboard