create

fun create(name: String = "keystone", platformContext: Any? = null): Keystone.Storage

Creates a platform-specific Keystone storage instance.

Return

A configured Keystone.Storage instance ready for use

Parameters

name

The storage name identifier. Defaults to "keystone". On some platforms this may be used as a filename, preference name, or namespace.

platformContext

Platform-specific context object: - Android: Requires Application Context - Other platforms: May be ignored or accept null

Throws

if required platform context is missing

if storage cannot be initialized