ShareManager

actual class ShareManager
expect class 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.

actual class ShareManager
actual class ShareManager

Constructors

Link copied to clipboard
constructor()
expect constructor()
constructor()
constructor()

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?)