connectivity-api
|
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.
Manager is accessed by including the appropriate header:
and then creating an instance of the NetworkingStatus:
The status of the system networking can be accessed through the ubuntu::connectivity::NetworkingStatus::status property:
The limitations can be accessed through the ubuntu::connectivity::NetworkingStatus::limitations property:
The complete example (found in examples/example_networking_status.cpp):