Skip to main content
Use this API to listen for network status changes. Listening starts automatically when the API is called; the callback interval is 500 ms. Call my.offNetworkStatusChange to stop listening.

Parameters

Listener Callback

Code Example

my.offNetworkStatusChange

Stop listening

my.getNetworkType

Get the current network type