title: Taro.onWifiConnected(callback)

sidebar_label: onWifiConnected

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

Reference

Type

  1. (callback: Callback) => void

Parameters

Callback

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

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