exposeFunction

open suspend override fun exposeFunction(name: String, allowedOrigins: Set<String>, handler: suspend (String) -> String?)

Exposes a native function to page context, over an origin-scoped channel.

No native bridge exists by default. Exposure is explicit, typed and origin-checked, and nothing on the filesystem, in app storage or in secrets is reachable through it.