NetworkConnectionType GetConnectionType ()

Gets the current system network connection type

Security

Trust Level Required: Low Trust

Return

The NetworkConnectionType.

Remarks

This function loops through all network adapters, returning the status of the first device considered to have a valid and established connection. In the event where no adapter is connected, a fallback approach is attempted. Upon failure to accurately determine status, Unknown is returned.

Examples


var connType = KioUtils.GetConnectionType();
console.log('connType: '+connType);

Requirements

KioWare for Windows version 8.18 or greater.