Skip to content

Commit

Permalink
Merge pull request #118 from MohamedRejeb/0.5.x
Browse files Browse the repository at this point in the history
Add experimental annotation to desktop FileSaverLauncher
  • Loading branch information
MohamedRejeb authored Jul 24, 2024
2 parents c57060f + 1242c46 commit 4d7b697
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.rememberUpdatedState
import com.mohamedrejeb.calf.core.ExperimentalCalfApi
import com.mohamedrejeb.calf.io.KmpFile
import com.mohamedrejeb.calf.picker.platform.awt.AwtFileSaver
import kotlinx.coroutines.launch

@ExperimentalCalfApi
@Composable
fun rememberFileSaverLauncher(
onResult: (KmpFile?) -> Unit,
Expand All @@ -33,6 +35,7 @@ fun rememberFileSaverLauncher(
)
}

@ExperimentalCalfApi
class FileSaverLauncher(
private val onLaunch: (
bytes: ByteArray?,
Expand Down

0 comments on commit 4d7b697

Please sign in to comment.