rememberExportSaverLauncher

expect fun rememberExportSaverLauncher(dialogSettings: FileKitDialogSettings = FileKitDialogSettings.createDefault(), onError: (FileKitDialogException) -> Unit = {}, onResult: (MediaSink?) -> Unit): ExportSaverLauncher(source)

Remembers a saver that hands an export destination back as a MediaSink.

Android, Apple and the JVM open the platform's save dialog and report where the user chose. A browser opens nothing and reports a MediaSink.Path named after the launch arguments at once, which is the name the engine downloads under.

An iOS dialog can hand back a security-scoped URL, so the caller holds withScopedAccess open for the life of the export.

Parameters

dialogSettings

FileKit's per-platform dialog settings.

onError

Called when a save that started cannot finish. Dismissal is not an error.

onResult

Called with the destination, or with null when the dialog was dismissed.

actual fun rememberExportSaverLauncher(dialogSettings: FileKitDialogSettings, onError: (FileKitDialogException) -> Unit, onResult: (MediaSink?) -> Unit): ExportSaverLauncher(source)

Remembers a saver that hands an export destination back as a MediaSink.

Android, Apple and the JVM open the platform's save dialog and report where the user chose. A browser opens nothing and reports a MediaSink.Path named after the launch arguments at once, which is the name the engine downloads under.

An iOS dialog can hand back a security-scoped URL, so the caller holds withScopedAccess open for the life of the export.

Parameters

dialogSettings

FileKit's per-platform dialog settings.

onError

Called when a save that started cannot finish. Dismissal is not an error.

onResult

Called with the destination, or with null when the dialog was dismissed.

actual fun rememberExportSaverLauncher(dialogSettings: FileKitDialogSettings, onError: (FileKitDialogException) -> Unit, onResult: (MediaSink?) -> Unit): ExportSaverLauncher(source)

Remembers a saver that hands an export destination back as a MediaSink.

Android, Apple and the JVM open the platform's save dialog and report where the user chose. A browser opens nothing and reports a MediaSink.Path named after the launch arguments at once, which is the name the engine downloads under.

An iOS dialog can hand back a security-scoped URL, so the caller holds withScopedAccess open for the life of the export.

Parameters

dialogSettings

FileKit's per-platform dialog settings.

onError

Called when a save that started cannot finish. Dismissal is not an error.

onResult

Called with the destination, or with null when the dialog was dismissed.