connectivity-api
Networking Status

Applications needing to access the overall system networking status must access the ubuntu::connectivity::NetworkingStatus class. The class has properties for the networking status and connection limitations of the system networking.

Accessing the networking status from confined applications requires the connectivity policy group.

Setup

Manager is accessed by including the appropriate header:

and then creating an instance of the NetworkingStatus:

Networking Status

Status

The status of the system networking can be accessed through the ubuntu::connectivity::NetworkingStatus::status property:

Limitations

The limitations can be accessed through the ubuntu::connectivity::NetworkingStatus::limitations property:


The complete example (found in examples/example_networking_status.cpp):