title: Taro.onGetWifiList(callback)

sidebar_label: onGetWifiList

Listens on the event of getting the list of Wi-Fi networks.

Reference

Type

  1. (callback: Callback) => void

Parameters

Callback

The callback function for the event of getting the list of Wi-Fi networks.

  1. (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 ✔️