create

actual fun create(userId: UserIDEntity, shouldEncryptData: Boolean, platformParam: Any): UserConfigStorage

Creates a UserConfigStorage instance for Android.

Parameters

userId

The user ID entity

shouldEncryptData

Whether to encrypt the data

platformParam

Must be an Android Context

actual fun create(userId: <Error class: unknown class>, shouldEncryptData: Boolean, platformParam: Any): <Error class: unknown class>

Creates a UserConfigStorage instance for Apple platforms.

Parameters

userId

The user ID entity

shouldEncryptData

Whether to encrypt the data (ignored on Apple, uses Keychain)

platformParam

Must be an ApplePersistenceConfig supplied by the consumer via CoreLogic. The serviceName inside it must NOT be derived from NSHomeDirectory().

expect fun create(userId: UserIDEntity, shouldEncryptData: Boolean, platformParam: Any): UserConfigStorage
actual fun create(userId: <Error class: unknown class>, shouldEncryptData: Boolean, platformParam: Any): <Error class: unknown class>
actual fun create(userId: UserIDEntity, shouldEncryptData: Boolean, platformParam: Any): UserConfigStorage

Creates a UserConfigStorage instance for JVM.

Parameters

userId

The user ID entity

shouldEncryptData

Whether to encrypt the data

platformParam

Must be a String representing the root path