Taro.onGetWifiList(callback)
Listens on the event of getting the list of Wi-Fi networks.
Type
(callback: Callback) => void
Parameters
Callback
The callback function for the event of getting the list of Wi-Fi networks.
(result: CallbackResult) => void
Property | Type |
---|---|
result | CallbackResult |
CallbackResult
Property | Type | Description |
---|---|---|
wifiList | WifiInfo[] | The list of Wi-Fi networks |
API Support
API | WeChat Mini-Program | H5 | React Native |
---|---|---|---|
Taro.onGetWifiList | ✔️ |