Configuration
Learn how to configure the Azakaw KYC SDK in your Android application.
Initialization
The SDK provides a main entry point through the AzakawKyc
class and uses AzakawKycConfig
for configuration.
// Create configuration
val config = AzakawKycConfig(
sessionId = "your-session-id",
environment = Environment.SANDBOX, // or Environment.PRODUCTION
isFullscreen = false // optional, defaults to false
)
// Start KYC process
AzakawKyc.start(
context = this, // Activity context
config = config,
onCancel = {
// Handle when user cancels
}
)
Configuration Options
AzakawKycConfig
Parameter | Type | Required | Description |
---|---|---|---|
sessionId | String | Yes | Session ID obtained from backend |
environment | Environment | Yes | SANDBOX or PRODUCTION |
isFullscreen | Boolean | No | Whether to show in fullscreen mode |
Environment Options
enum class Environment {
SANDBOX,
PRODUCTION
}
Handling Permissions
The SDK will automatically request camera permissions when needed. However, you should handle permission results in your Activity:
override fun onRequestPermissionsResult(
requestCode: Int,
permissions: Array<out String>,
grantResults: IntArray
) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults)
AzakawKyc.handlePermissionResult(requestCode, permissions, grantResults)
}
Next Steps
Continue to: