Developer Reference App UI Design — Android & iOS · Maven Distribution · 4 Screens
// 1 — configure once, at app start Ekyc.init( context = this, licence = Licence.fromAssets() ) // 2 — launch the ready-made flow val launcher = registerForActivityResult( DocumentCapture.Contract() ) { result -> when (result) { is Success -> onCaptured( image = result.croppedImage, quality = result.qualityReport ) is Cancelled -> finish() is Failure -> showError(result.reason) } } launcher.launch( DocumentCaptureConfig( docType = DocType.ID_CARD, autoCrop = true, minQuality = 0.75f ) )
repositories { maven("https://maven.example.com/ekyc") } dependencies { implementation("com.example:ekyc-sdk:1.0.0") }