shareLocalFile

fun Context.shareLocalFile(uri: Uri, mimeType: String? = null, text: String? = null)

Share a local file.

Parameters

uri

The local file Uri to share.

mimeType

The mime type of the local file to share. If null, the system will try to infer it.

text

An optional text to share along with the file.