createPlatformDelegate

Android implementation of platform delegate factory.

Requires an Android Context. When store is null, a persistent SharedPreferencesGrantStore is used so request history survives process death.

Platform-specific factory function. Internal use only.

A null store selects the platform default (persistent on Android, in-memory on iOS).

actual fun createPlatformDelegate(context: Any?, store: <Error class: unknown class>?): PlatformGrantDelegate

iOS implementation of platform delegate factory.

Accepts GrantStore for state management (in-memory only on iOS).

JVM desktop implementation of the platform delegate factory.

context is accepted for API-shape parity with Android and ignored — a JVM process has no Android-style Context. Defaults store to InMemoryGrantStore: the OS's own privacy database is already the durable "have we asked before" record, the same reasoning iosMain and webMain already apply.

The browser has no "context" concept — context is accepted for API-shape parity with Android/iOS and ignored. store defaults to InMemoryGrantStore and, unlike Android, that default is also the correct choice on the web: the browser's own permission record is already durable across page loads, so there is no process-death-style gap for a persistent store to close here.