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

前端 未结 2 644
野性不改
野性不改 2021-02-14 21:34

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:22

    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.

提交回复
热议问题