ShareManager
A platform-neutral interface for invoking system share sheets.
This abstraction allows the shared Compose UI to export documents or media to other apps without leaking platform-specific contexts or file system implementations.
Functions
Link copied to clipboard
actual suspend fun shareDocument(content: ByteArray, filename: String, mimeType: String, title: String?)
expect suspend fun shareDocument(content: ByteArray, filename: String, mimeType: String, title: String? = null)
Presents the system share sheet for the given document payload.
actual suspend fun shareDocument(content: ByteArray, filename: String, mimeType: String, title: String?)
actual suspend fun shareDocument(content: ByteArray, filename: String, mimeType: String, title: String?)