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
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 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, 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
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 setTestParams(params: 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
Link copied to clipboard
fun test(str: String)