Skip to main content

Step 1: Initialize the enrollment process

Call initEnrollment in your activity’s onCreate method:
fun ComponentActivity.initEnrollment(
    callbackEnrollmentState: ((String?) -> Unit)? = null
)

Step 2: Start the enrollment flow

Call startEnrollment to launch the UI:
fun Activity.startEnrollment(
    customerSession: String,
    countryCode: String,
    showEnrollmentStatus: Boolean = true,
    requestCode: Int
)

Possible status values

  • SUCCEEDED
  • FAIL
  • PROCESSING
  • REJECT
  • CANCELED

Step 3: Render mode (Advanced)

For full UI control, use startEnrollmentRender:
fun Activity.startEnrollmentRender(
    customerSession: String,
    countryCode: String,
    submitButton: Boolean = false,
    coroutineScope: CoroutineScope,
    listener: YunoEnrollmentRenderListener
): YunoEnrollmentFragmentController
Demo AppSee the Yuno Android SDK repository for full implementation examples.