FilePicker

actual class FilePicker(val types: List<String>, val allowMultiple: Boolean, val onLaunch: () -> Unit)
expect class FilePicker(types: List<String>, allowMultiple: Boolean, onLaunch: () -> Unit)

Represents a platform file picker instance

Use launch to show the picker UI.

Parameters

types

list of MIME types allowed.

allowMultiple

whether multiple file selection is supported.

onLaunch

function triggered internally when launch is called.

actual class FilePicker(val types: List<String>, val allowMultiple: Boolean, val onLaunch: () -> Unit)

Constructors

Link copied to clipboard
actual constructor(types: List<String>, allowMultiple: Boolean, onLaunch: () -> Unit)
expect constructor(types: List<String>, allowMultiple: Boolean, onLaunch: () -> Unit)
actual constructor(types: List<String>, allowMultiple: Boolean, onLaunch: () -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard
val onLaunch: () -> Unit
val onLaunch: () -> Unit
Link copied to clipboard

Functions

Link copied to clipboard
actual fun launch()
expect fun launch()

Launches the platform file picker UI.

actual fun launch()