Skip to content

Commit 1242c46

Browse files
committed
Add experimental annotation to desktop FileSaverLauncher
1 parent e04801b commit 1242c46

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

calf-file-picker/src/desktopMain/kotlin/com/mohamedrejeb/calf/picker/FileSaverLauncher.desktop.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ import androidx.compose.runtime.Composable
44
import androidx.compose.runtime.getValue
55
import androidx.compose.runtime.rememberCoroutineScope
66
import androidx.compose.runtime.rememberUpdatedState
7+
import com.mohamedrejeb.calf.core.ExperimentalCalfApi
78
import com.mohamedrejeb.calf.io.KmpFile
89
import com.mohamedrejeb.calf.picker.platform.awt.AwtFileSaver
910
import kotlinx.coroutines.launch
1011

12+
@ExperimentalCalfApi
1113
@Composable
1214
fun rememberFileSaverLauncher(
1315
onResult: (KmpFile?) -> Unit,
@@ -33,6 +35,7 @@ fun rememberFileSaverLauncher(
3335
)
3436
}
3537

38+
@ExperimentalCalfApi
3639
class FileSaverLauncher(
3740
private val onLaunch: (
3841
bytes: ByteArray?,

0 commit comments

Comments
 (0)