Package-level declarations

Types

Link copied to clipboard

Asks for the destination a rememberExportSaverLauncher call reports back on.

Link copied to clipboard

A picked still, as both the file the dialog returned and the source an effect reads it through.

Link copied to clipboard

A picked clip, as both the file the dialog returned and the source an export reads it through.

Link copied to clipboard
interface ShareLauncher

Hands a file to the platform's share sheet.

Functions

Link copied to clipboard
fun ShareResultLauncher.launch(output: MediaSink)

Shares whatever an export wrote, on the arm it reported, for a caller already holding FileKit's launcher.

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

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

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

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

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

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

Link copied to clipboard
fun rememberImagePickerLauncher(type: FileKitType = FileKitType.Image, directory: PlatformFile? = null, dialogSettings: FileKitDialogSettings = FileKitDialogSettings.createDefault(), onError: (FileKitPickerException) -> Unit = {}, onResult: (PickedImage?) -> Unit): PickerResultLauncher

Remembers a picker that hands a still back as an ImageSource, for a watermark or a title card.

Link copied to clipboard
fun rememberMediaPickerLauncher(type: FileKitType = FileKitType.Video, directory: PlatformFile? = null, dialogSettings: FileKitDialogSettings = FileKitDialogSettings.createDefault(), onError: (FileKitPickerException) -> Unit = {}, onResult: (PickedMedia?) -> Unit): PickerResultLauncher

Remembers a picker that hands a clip back as a MediaSource.

Link copied to clipboard
expect fun rememberShareLauncher(onError: (FileKitDialogException) -> Unit = {}): ShareLauncher?

Remembers the share sheet for this platform.

actual fun rememberShareLauncher(onError: (FileKitDialogException) -> Unit): ShareLauncher?

Remembers the share sheet for this platform.

actual fun rememberShareLauncher(onError: (FileKitDialogException) -> Unit): ShareLauncher?

Remembers the share sheet for this platform.

actual fun rememberShareLauncher(onError: (FileKitDialogException) -> Unit): ShareLauncher?

Remembers the share sheet for this platform.