onNetworkModeChanged method

void onNetworkModeChanged(
  1. ZegoNetworkMode mode
)

Network mode changed callback.

Available since: 1.20.0 Description: Network mode changed callback. When to trigger: This callback will be triggered when the device's network mode changed, such as switched from WiFi to 5G, or when network is disconnected. Restrictions: None.

  • mode Current network mode.

Implementation

void onNetworkModeChanged(
  ZegoNetworkMode mode,
) {}