Why openFileChooser in WebChromeClient is hidden from the docs? Is it safe to use this method?

前端 未结 2 1071
旧时难觅i
旧时难觅i 2021-02-14 22:03

Most of the places I see, file upload feature in WebView is implemented using openFileChooser() method. Is it legal/safe to use this method? If I use t

2条回答
  •  遥遥无期
    2021-02-14 22:19

    Since this is not documented in WebChromeClient, no it is not a safe API, but yes it is legal.

    But you can still use it. Make sure to catch any error. But the process cannot be guaranteed to work.

提交回复
热议问题