public interface CefDialogHandler
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
CefDialogHandler.FileDialogMode
Supported file dialog modes.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
onFileDialog(CefBrowser browser,
CefDialogHandler.FileDialogMode mode,
String title,
String defaultFilePath,
Vector<String> acceptFilters,
int selectedAcceptFilter,
CefFileDialogCallback callback)
Called to run a file chooser dialog.
|
boolean onFileDialog(CefBrowser browser, CefDialogHandler.FileDialogMode mode, String title, String defaultFilePath, Vector<String> acceptFilters, int selectedAcceptFilter, CefFileDialogCallback callback)
browser - mode - represents the type of dialog to display.title - to be used for the dialog and may be empty to show the default
title ("Open" or "Save" depending on the mode).defaultFilePath - is the path with optional directory and/or file name
component that should be initially selected in the dialog.acceptFilters - are used to restrict the selectable file types and may
any combination of (a) valid lower-cased MIME types (e.g. "text/*" or
"image/*"), (b) individual file extensions (e.g. ".txt" or ".png"), or (c)
combined description and file extension delimited using "|" and ";" (e.g.
"Image Types|.png;.gif;.jpg").selectedAcceptFilter - is the 0-based index of the filter that should
be selected by default.callback - is a callback handler for handling own file dialogs.Copyright © 2017. All rights reserved.