Named

data class Named(val name: String) : StoreLocator

Named web store only (non-blank). Typed proto → IndexedDB; preferences → localStorage.

Constructors

Link copied to clipboard
constructor(name: String)

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Applies this locator's logical store name (for StoreLocator.Platform and StoreLocator.Named) to options via EncryptedStoreOptions.applyDefaultStoreName so AAD derivation is identical across file and web targets when EncryptedStoreOptions.storeName is left at its default.

Link copied to clipboard
fun <R> StoreLocator.resolve(onFile: (producePath: () -> Path) -> R, onNamed: (name: String) -> R): R

Resolves this locator to a file path or web name for the current target.

fun <R> StoreLocator.resolve(usesFileStorage: Boolean, onFile: (producePath: () -> Path) -> R, onNamed: (name: String) -> R): R

Same as resolve with an explicit usesFileStorage override (tests / tooling).