# Android SDK

Android SDK is engineered to help you deliver a secure, efficient, and user-friendly experience for Strong Customer Authentication (SCA), the onboarding process, and digital wallet tokenization with Google Pay.

To start with the Android SDK, please refer to the README.md file in our GitHub repository: https://github.com/intergiro/android-sdk (opens new window), where you'll find the details on the following things:

  • System requirements
  • Installation
  • Configuration

# Android SDK usage example

class SampleActivity : AppCompatActivity(), ActivityResultCallback<IntergiroUserSessionResult> {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        //... app code ...

        val launcher = registerForActivityResult(IntergiroUserSession(), ::onActivityResult)
        someBtn.setOnClickListener { launcher.launch(token) }
    }

    override fun onActivityResult(result: IntergiroUserSessionResult) {
        when (result) {
            is IntergiroUserSessionResult.Completed -> {
                //Handle result
            }

            is IntergiroUserSessionResult.Canceled -> {
                //Handle result
            }

            is IntergiroUserSessionResult.Error -> {
                //Handle result
            }
        }
    }
}

A call of the launcher.launch() method of Android SDK with the token during one of the supported flows (SCA, onboarding, Google Pay) opens a UI provided by Intergiro, where your customers can go through the chosen flow.

Depending on what happened within the SDK UI, the callback can return a payload along with the status of an operation. For a list of possible statuses, please refer to the IntergiroUserSessionResult interface.