
Adds a connection type listener to the list of listeners.
Every new listener will be called right after its registration with the current type.
| Name | Description | Type | Use |
|---|---|---|---|
| callback | When the type of the network connection changes, a function is called. The function
has one parameter: type. |
function |
required |