IdentityManager

class IdentityManager(deviceHelper: DeviceHelper, storage: Storage, configManager: ConfigManager, ioScope: IOScope, neverCalledStaticConfig: () -> Boolean, stringToSha: (String) -> String = { it }, notifyUserChange: (change: Map<String, Any>) -> Unit, completeReset: () -> Unit = { Superwall.instance.reset(duringIdentify = true) }, track: suspend (TrackableSuperwallEvent) -> Unit = { Superwall.instance.track(it) })(source)

Constructors

Link copied to clipboard
constructor(deviceHelper: DeviceHelper, storage: Storage, configManager: ConfigManager, ioScope: IOScope, neverCalledStaticConfig: () -> Boolean, stringToSha: (String) -> String = { it }, notifyUserChange: (change: Map<String, Any>) -> Unit, completeReset: () -> Unit = { Superwall.instance.reset(duringIdentify = true) }, track: suspend (TrackableSuperwallEvent) -> Unit = { Superwall.instance.track(it) })

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val hasIdentity: Flow<Boolean>
Link copied to clipboard
Link copied to clipboard
val seed: Int
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun configure()
Link copied to clipboard
fun identify(userId: String, options: IdentityOptions? = null)
Link copied to clipboard
fun mergeUserAttributes(newUserAttributes: Map<String, Any?>, shouldTrackMerge: Boolean = true)
Link copied to clipboard
fun reset(duringIdentify: Boolean)