title: Taro.onWifiConnected(callback)
sidebar_label: onWifiConnected
Listens on the event of connecting to the Wi-Fi network.
Type
(callback: Callback) => void
Parameters
Callback
The callback function for event of connecting to the Wi-Fi network.
(result: CallbackResult) => void
Property | Type |
---|---|
result | CallbackResult |
CallbackResult
Property | Type | Description |
---|---|---|
wifi | WifiInfo |
Information of the Wi-Fi network |
API Support
API | WeChat Mini-Program | H5 | React Native |
---|---|---|---|
Taro.onWifiConnected | ✔️ |