Companion

object Companion

Functions

Link copied to clipboard

Cancel any in-flight CustomerSession operations. Their callback listeners will not be called.

Link copied to clipboard

End the singleton instance of a CustomerSession. Calls to getInstance will throw an IllegalStateException after this call, until the user calls initCustomerSession again.

Link copied to clipboard

Gets the singleton instance of CustomerSession. If the session has not been initialized, this will throw a RuntimeException.

Link copied to clipboard
fun initCustomerSession(context: Context, ephemeralKeyProvider: EphemeralKeyProvider, shouldPrefetchEphemeralKey: Boolean = true)

Create a CustomerSession with the provided EphemeralKeyProvider.