rememberShareText

actual fun rememberShareText(): (text: String, subject: String) -> Unit(source)

Returns a function that hands text to the platform's share mechanism, so the user can send it through any app they have. subject titles the share where the platform shows one.

Distinct from copying to the clipboard: the clipboard makes the user find the destination themselves, which is the difference between sharing with someone in the room and sharing with someone who is not.

expect fun rememberShareText(): (text: String, subject: String) -> Unit(source)

Returns a function that hands text to the platform's share mechanism, so the user can send it through any app they have. subject titles the share where the platform shows one.

Distinct from copying to the clipboard: the clipboard makes the user find the destination themselves, which is the difference between sharing with someone in the room and sharing with someone who is not.

actual fun rememberShareText(): (text: String, subject: String) -> Unit(source)

JVM stub — NFC settings are not available on Desktop.