Simplified Launch
This section shows practical examples for integrating and using the Facephi SDK in Android mobile applications, adapted to the most common verification flows.
Initialize the SDK
val sdkConfig = SdkConfigurationData(
sdkApplication = SdkApplication(application),
licensing = LicensingOnline(EnvironmentLicensingData(
apiKey = "...")
)),
)
val result = SDKController.initSdk(sdkConfig)
when (result) {
is SdkResult.Success -> Log.d("APP: INIT SDK: OK")
is SdkResult.Error -> Log.d(
"APP: INIT SDK: KO - ${result.error.name}"
)
}
if (BuildConfig.DEBUG) {
SDKController.enableDebugMode()
}Start operation
Component launch
Security
Last updated