Skip to main content

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

ParameterTypeRequiredDescription
sessionIdStringYesSession ID obtained from backend
environmentEnvironmentYesSANDBOX or PRODUCTION
isFullscreenBooleanNoWhether 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:

  • Usage to learn how to use the SDK features
  • Examples to see implementation samples