identity / com.revenuecat.purchases.identity / IdentityManager

IdentityManager

class IdentityManager

Constructors

<init>

IdentityManager(deviceCache: DeviceCache, subscriberAttributesCache: SubscriberAttributesCache, backend: Backend)

Properties

currentAppUserID

val currentAppUserID: String

Functions

configure

fun configure(appUserID: String?): Unit

createAlias

fun createAlias(newAppUserID: String, onSuccess: () -> Unit, onError: (PurchasesError) -> Unit): Unit

currentUserIsAnonymous

fun currentUserIsAnonymous(): Boolean

identify

fun identify(appUserID: String, onSuccess: () -> Unit, onError: (PurchasesError) -> Unit): Unit

logIn

fun logIn(newAppUserID: String, onSuccess: (PurchaserInfo, Boolean) -> Unit, onError: (PurchasesError) -> Unit): Unit

logOut

fun logOut(): PurchasesError?

reset

fun reset(): Unit