FilePickerState

class FilePickerState(val pickedFile: File?, val pickFile: () -> Unit, val clearPickedFile: () -> Unit, deniedPermissionState: DeniedPermissionState) : DeniedPermissionState

Represents the state of the file picker. This inherits DeniedPermissionState to handle cases when the permission is denied.

Since

1.0.0-beta.1

Constructors

Link copied to clipboard
constructor(pickedFile: File?, pickFile: () -> Unit, clearPickedFile: () -> Unit, deniedPermissionState: DeniedPermissionState)

Properties

Link copied to clipboard

The handler to clear the picked file.

Link copied to clipboard

The picked File.

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

The handler to launch the Android's file picker.