android-components / mozilla.components.concept.engine.prompt / PromptRequest / File

File

data class File : PromptRequest (source)

Value type that represents a request for a selecting one or multiple files.

Types

Name Summary
FacingMode enum class FacingMode

Constructors

Name Summary
<init> File(mimeTypes: Array<out String>, isMultipleFilesSelection: Boolean, onSingleFileSelected: (<ERROR CLASS>, <ERROR CLASS>) -> Unit, onMultipleFilesSelected: (<ERROR CLASS>, Array<<ERROR CLASS>>) -> Unit, onDismiss: () -> Unit)File(mimeTypes: Array<out String>, isMultipleFilesSelection: Boolean = false, captureMode: FacingMode = FacingMode.NONE, onSingleFileSelected: (<ERROR CLASS>, <ERROR CLASS>) -> Unit, onMultipleFilesSelected: (<ERROR CLASS>, Array<<ERROR CLASS>>) -> Unit, onDismiss: () -> Unit)
Value type that represents a request for a selecting one or multiple files.

Properties

Name Summary
captureMode val captureMode: FacingMode
indicates if the local media capturing capabilities should be used, such as the camera or microphone.
isMultipleFilesSelection val isMultipleFilesSelection: Boolean
true if the user can select more that one file false otherwise.
mimeTypes val mimeTypes: Array<out String>
a set of allowed mime types. Only these file types can be selected.
onDismiss val onDismiss: () -> Unit
callback to notify that the user has canceled the file selection.
onMultipleFilesSelected val onMultipleFilesSelected: (<ERROR CLASS>, Array<<ERROR CLASS>>) -> Unit
callback to notify that the user has selected multiple files.
onSingleFileSelected val onSingleFileSelected: (<ERROR CLASS>, <ERROR CLASS>) -> Unit
callback to notify that the user has selected a single file.