Interface CefriumDialogHandler


public interface CefriumDialogHandler
Handles the file-chooser dialog for <input type=file> (WebView WebChromeClient.onShowFileChooser), mirroring CEF's CefDialogHandler. Register with CefriumBrowser.setDialogHandler(CefriumDialogHandler). Without a handler set, file inputs cannot pick a file.

Delivered on the Android main thread so you can launch an Intent directly.

  • Field Details

    • MODE_OPEN

      static final int MODE_OPEN
      File dialog mode: open a single file.
      See Also:
    • MODE_OPEN_MULTIPLE

      static final int MODE_OPEN_MULTIPLE
      File dialog mode: open multiple files.
      See Also:
    • MODE_OPEN_FOLDER

      static final int MODE_OPEN_FOLDER
      File dialog mode: open a folder.
      See Also:
    • MODE_SAVE

      static final int MODE_SAVE
      File dialog mode: save a file.
      See Also:
  • Method Details

    • onFileDialog

      void onFileDialog(int mode, String title, String[] acceptFilters, CefriumDialogHandler.FileDialogCallback callback)
      A file input asked to choose file(s). Launch a picker (e.g. ACTION_GET_CONTENT) and deliver the result through callback. The mode's low bits are the CEF file-dialog mode; use MODE_OPEN etc. (mask with 0xF).
      Parameters:
      mode - CEF file-dialog mode/flags.
      title - Suggested dialog title (may be empty).
      acceptFilters - MIME types / extensions the input accepts.
      callback - Result callback.