Companion

object Companion

Functions

Link copied to clipboard
fun cancelCallbacks()

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

Link copied to clipboard
fun endCustomerSession()

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
fun getInstance(): CustomerSession

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.