connection_valid


Description:

public bool connection_valid (Connection connection)

Validates a given connection for a given Device object and returns whether the connection may be activated with the device.

For example if this is a Wi-Fi device that supports only WEP encryption, the connection will only be valid if it is a Wi-Fi connection which describes a WEP or open network, and will not be valid if it describes a WPA network, or if it is an Ethernet, Bluetooth, WWAN, etc connection that is incompatible with the device.

Parameters:

this

an Device to validate connection against

connection

an Connection to validate against this

Returns:

true if the connection may be activated with this device, false if is incompatible with the device's capabilities and characteristics.




2022 vala-language.org