Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

package com.codename1.io.filechooser

Native Open and Save dialogs with portable filters and options, and platform specific hints and callbacks.

OpenFileRequest and SaveFileRequest describe a dialog, com.codename1.ui.Display#showOpenDialog and com.codename1.ui.Display#showSaveDialog show it, and FileDialogResult reports what the user chose. Every platform can open and save a file; the richer parts – several filters, extra controls, embedded components, live previews – apply where the platform has them and are ignored elsewhere, as FileDialogFeatures reports.

Types

class FileDialogFeaturesCapabilities a platform’s file dialogs may have, queried with com.codename1.ui.Display#isFileDialogFeatureSupported(int).
class FileDialogHintsPlatform specific hints for FileDialogRequest#hint(String, Object).
class FileDialogOptionA declarative control added to a native file dialog: a checkbox, a choice list or a text field.
class FileDialogRequestThe settings shared by OpenFileRequest and SaveFileRequest.
class FileDialogResultThe outcome of a file dialog, delivered to the callback on the EDT.
interface FilePreviewProviderSupplies the preview an open dialog shows beside its file list.
class FileTypeFilterA named group of file types a file dialog offers, such as “PNG Image” or “Text Documents”.
class OpenFileRequestDescribes a native Open dialog for com.codename1.ui.Display#showOpenDialog(OpenFileRequest, com.codename1.util.SuccessCallback).
interface SaveContentWrites the content of a file once the user has chosen where to save it.
class SaveFileRequestDescribes a native Save dialog for com.codename1.ui.Display#showSaveDialog(SaveFileRequest, com.codename1.util.SuccessCallback).