Skip to main content
Version: 3.x

Taro.onWifiConnected(callback)

Listens on the event of connecting to the Wi-Fi network.

Reference

Type

(callback: Callback) => void

Parameters

Callback

The callback function for event of connecting to the Wi-Fi network.

(result: CallbackResult) => void
PropertyType
resultCallbackResult

CallbackResult

PropertyTypeDescription
wifiWifiInfoInformation of the Wi-Fi network

API Support

APIWeChat Mini-ProgramH5React Native
Taro.onWifiConnected✔️