Package-level declarations

Types

Link copied to clipboard

All dependencies available to identity IdentityState.Actions.

Link copied to clipboard
data class IdentityInfo(val aliasId: String, val appUserId: String?)
Link copied to clipboard
Link copied to clipboard
class IdentityManager(val storage: Storage, ioScope: IOScope, stringToSha: (String) -> String = { it }, val notifyUserChange: (change: Map<String, Any>) -> Unit, val completeReset: () -> Unit = { Superwall.instance.reset(duringIdentify = true) }, val tracker: suspend (TrackableSuperwallEvent) -> Unit = { Superwall.instance.track(it) }, options: () -> SuperwallOptions, val webPaywallRedeemer: () -> WebPaywallRedeemer, val actor: StateActor<IdentityContext, IdentityState>, val sdkContext: SdkContext) : IdentityContext

Facade over the identity state of the shared SDK actor.

Link copied to clipboard
data class IdentityOptions(val restorePaywallAssignments: Boolean = false)

Options passed in when calling Superwall.identify(userId, options).

Link copied to clipboard
data class IdentityState(val appUserId: String? = null, val aliasId: String = IdentityLogic.generateAlias(), val seed: Int = IdentityLogic.generateSeed(), val userAttributes: Map<String, Any> = emptyMap(), val phase: IdentityState.Phase = Phase.Pending(setOf(Pending.Configuration)), val appInstalledAtString: String = "")

Functions

Link copied to clipboard
fun cleanAttributes(attributes: Map<String, Any?>): Map<String, Any?>
Link copied to clipboard
fun Superwall.identify(userId: String, options: IdentityOptions? = null)
Link copied to clipboard