share

suspend fun share(json: String, chooserTitle: String)

Persists json to a cache file and opens the Android share sheet for it.

File writing runs on Dispatchers.IO; the chooser is launched on the main thread. The shared URI carries a temporary read grant to the receiving app.

Parameters

json

Serialized ExportReport JSON to share.

chooserTitle

Title shown on the system share chooser.