writeShareFile

suspend fun writeShareFile(context: Context, data: ByteArray, name: String): Uri

Writes data into the app's shared cache directory and returns a FileProvider URI suitable for sharing to other apps.