Android SDK

Android SDK For FACEKI

Getting Started:

The minimum requirements for the SDK are:

  • Android 5.0 (API level 21) or higher

  • Internet connection

Permissions

Required permissions are linked automatically by the SDK.

Integration by sdk

Use the SDK in your application by including the Maven repositories with the following build.gradle configuration in Android Studio:

repositories {
	...
	maven { url 'https://jitpack.io' }
}

Integration by library

Use the Library in your application by implemention lib with the following build.gradle project module in Android Studio:

	implementation 'com.github.faceki:blaze-android-sdk:Tag'

or

and including the Maven repositories with the following build.gradle configuration in Android Studio:

Example

Kotlin

To Get the response back from the SDK.

Java

Custom colors

Use setCustomColors to customize the color scheme.

Kotlin

Java

Use setCustomIcons to customize the icons.

Kotlin

Java

Response Handling

  • The response from KYC verification is a plain JSON object.

  • You can convert this response into a JSON object using serialization libraries like Gson or Moshi.

Methods

  • startKycVerification: Initiates the KYC verification process.

  • setCustomColors: Customizes the colors of various UI elements.

  • setCustomIcons: Customizes the icons used in the UI.

Enums and Sealed Classes

ColorElement

  • Enum defining different UI elements that can have their colors customized.

ColorValue

  • Sealed class representing a color value.

  • Types:

    • IntColor: Represents color as an integer.

    • StringColor: Represents color as a string (e.g., "#FFFFFF").

IconElement

  • Enum defining different UI elements that can have their icons customized.

IconValue

  • Sealed class representing an icon value.

  • Types:

    • Resource: Represents an icon as a resource ID.

    • Url: Represents an icon as a URL.

Last updated