Class CefriumFileChooserParams

java.lang.Object
com.cefrium.CefriumFileChooserParams

@CefriumExperimental public final class CefriumFileChooserParams extends Object
What a file input asks for, as CefriumChromeClient.onShowFileChooser(CefriumBrowser, CefriumFileChooserParams, CefriumFileChooserCallback) sees it. Like WebChromeClient.FileChooserParams.
  • Method Details

    • getMode

    • getTitle

      public String getTitle()
      A title the page suggests; usually empty.
    • getAcceptTypes

      public List<String> getAcceptTypes()
      The input's accept list: MIME types (image/*) and extensions (.pdf). Empty accepts any file. Unmodifiable.
    • createIntent

      public android.content.Intent createIntent()
      An intent for the system picker that fits these parameters, as the SDK's own off-screen chooser uses. Start it and pass the result to parseResult(int, Intent).
    • parseResult

      public static String[] parseResult(int resultCode, android.content.Intent data)
      The URIs a picker started with createIntent() returned, for CefriumFileChooserCallback.select(String[]); empty when cancelled.