Skip to main content
Version: Next

Taro.onGetWifiList(callback)

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

Reference

Type

(callback: Callback) => void

Parameters

Callback

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

(result: CallbackResult) => void
PropertyType
resultCallbackResult

CallbackResult

PropertyTypeDescription
wifiListWifiInfo[]The list of Wi-Fi networks

API Support

APIWeChat Mini-ProgramH5React Native
Taro.onGetWifiList✔️