Identity Manager
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(source)
Facade over the identity state of the shared SDK actor.
Implements IdentityContext directly — actions receive this as their context, eliminating the intermediate object.
Constructors
Link copied to clipboard
constructor(storage: Storage, ioScope: IOScope, stringToSha: (String) -> String = { it }, notifyUserChange: (change: Map<String, Any>) -> Unit, completeReset: () -> Unit = {
Superwall.instance.reset(duringIdentify = true)
}, tracker: suspend (TrackableSuperwallEvent) -> Unit = {
Superwall.instance.track(it)
}, options: () -> SuperwallOptions, webPaywallRedeemer: () -> WebPaywallRedeemer, actor: StateActor<IdentityContext, IdentityState>, sdkContext: SdkContext)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Fire-and-forget dispatch of a sub-action on this context's actor.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend fun immediateUntil(action: TypedAction<IdentityContext>, until: (IdentityState) -> Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Apply a state reducer inline.