Package-level declarations

Functions

Link copied to clipboard
expect fun ImageSource.release()

Frees what toImageSource minted for this source, the way MediaSource.release does.

expect fun MediaSource.release()

Frees what toMediaSource minted for this source, which in a browser is the object URL.

actual fun ImageSource.release()

Does nothing either, for the same reason MediaSource.release does nothing.

actual fun MediaSource.release()

Does nothing.

actual fun ImageSource.release()

Revokes the object URL toImageSource minted, the way MediaSource.release does.

actual fun MediaSource.release()

Revokes the object URL toMediaSource minted, which is what lets the browser drop the file behind it.

Link copied to clipboard
suspend fun FileKit.saveImageToGallery(output: MediaSink, filename: String? = null): Result<Unit>

Saves a still into the platform's image gallery.

Link copied to clipboard
suspend fun FileKit.saveVideoToGallery(output: MediaSink, filename: String? = null): Result<Unit>

Saves what an export wrote into the platform's video gallery.

Link copied to clipboard
actual fun PlatformFile.toImageSource(): ImageSource

Reads PlatformFile as a still image, for a watermark or a title card.

actual fun PlatformFile.toImageSource(): ImageSource

Reads PlatformFile as a still image, for a watermark or a title card.

expect fun PlatformFile.toImageSource(): ImageSource

Reads PlatformFile as a still image, for a watermark or a title card.

actual fun PlatformFile.toImageSource(): ImageSource

Reads PlatformFile as a still image, for a watermark or a title card.

actual fun PlatformFile.toImageSource(): ImageSource

The same, for a still image.

Link copied to clipboard
actual fun PlatformFile.toMediaSink(): MediaSink

Writes an export to PlatformFile.

actual fun PlatformFile.toMediaSink(): MediaSink

Writes an export to PlatformFile.

expect fun PlatformFile.toMediaSink(): MediaSink

Writes an export to PlatformFile.

actual fun PlatformFile.toMediaSink(): MediaSink

Writes an export to PlatformFile.

actual fun PlatformFile.toMediaSink(): MediaSink

Writes an export to PlatformFile.

Link copied to clipboard
actual fun PlatformFile.toMediaSource(): MediaSource

Reads PlatformFile as video.

actual fun PlatformFile.toMediaSource(): MediaSource

Reads this file as video.

expect fun PlatformFile.toMediaSource(): MediaSource

Reads PlatformFile as video.

actual fun PlatformFile.toMediaSource(): MediaSource

Reads PlatformFile as video.

actual fun PlatformFile.toMediaSource(): MediaSource

Publishes this file as an object URL, which is the only handle WebCodecs reads.

Link copied to clipboard
fun MediaSink.toPlatformFile(): PlatformFile

Hands an export result back to FileKit, for a share sheet or a save dialog.