NetworkManagerClient class Null safety

A client that connects to NetworkManager.

Constructors

NetworkManagerClient({DBusClient? bus})
Creates a new NetworkManager client connected to the system D-Bus.

Properties

activeConnectionAdded Stream<NetworkManagerActiveConnection>
Stream of active connections as they are added.
read-only
activeConnectionRemoved Stream<NetworkManagerActiveConnection>
Stream of active connections as they are removed.
read-only
activeConnections List<NetworkManagerActiveConnection>
Currently active connections.
read-only
allDevices List<NetworkManagerDevice>
The list of both realized and un-realized network devices. Un-realized devices are software devices which do not yet have backing resources, but for which backing resources can be created if the device is activated.
read-only
connectivity NetworkManagerConnectivityState
The result of the last connectivity check.
read-only
connectivityCheckAvailable bool
True if connectivity checking is available.
read-only
connectivityCheckEnabled bool
True if connectivity checking is enabled.
read-only
connectivityCheckUri String
URI used for connectivity checking.
read-only
deviceAdded Stream<NetworkManagerDevice>
Stream of devices as they are added.
read-only
deviceRemoved Stream<NetworkManagerDevice>
Stream of devices as they are removed.
read-only
devices List<NetworkManagerDevice>
The list of realized network device. Realized devices are those which have backing resources (eg from the kernel or a management daemon like ModemManager, teamd, etc).
read-only
dnsManager NetworkManagerDnsManager
Gets the DNS manager object.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
metered NetworkManagerMetered
True if the primary connection has traffic limitations.
read-only
networkingEnabled bool
True if networking is enabled.
read-only
primaryConnection NetworkManagerActiveConnection?
The primary connection being used to access the network.
read-only
primaryConnectionType String
The type of connection being used to access the network.
read-only
propertiesChanged Stream<List<String>>
Stream of property names as their values change.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
settings NetworkManagerSettings
Gets the settings object.
read-only
startup bool
True is NetworkManager is still starting up.
read-only
state NetworkManagerState
The overall networking state.
read-only
version String
The version of NetworkManager running.
read-only
wirelessEnabled bool
True if wireless network is enabled.
read-only
wirelessHardwareEnabled bool
True if wireless network is enabled via a hardware switch.
read-only
wwanEnabled bool
True if mobile broadband is enabled.
read-only
wwanHardwareEnabled bool
True if mobile broadband is enabled via a hardware switch.
read-only

Methods

activateConnection({required NetworkManagerDevice device, NetworkManagerSettingsConnection? connection, NetworkManagerAccessPoint? accessPoint}) Future<NetworkManagerActiveConnection>
Activates a connection for device.
addAndActivateConnection({Map<String, Map<String, DBusValue>> connection = const {}, required NetworkManagerDevice device, NetworkManagerAccessPoint? accessPoint}) Future<NetworkManagerActiveConnection>
Adds a new connection for device and activates it.
close() Future<void>
Terminates all active connections. If a client remains unclosed, the Dart process may not terminate.
connect() Future<void>
Connects to the NetworkManager D-Bus objects. Must be called before accessing methods and properties.
deactivateConnection(NetworkManagerActiveConnection connection) Future<void>
Deactivates an active connection.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
setConnectivityCheckEnabled(bool value) Future<void>
Sets if connectivity checking is enabled.
setWirelessEnabled(bool value) Future<void>
Sets if wireless network is enabled.
setWwanEnabled(bool value) Future<void>
Sets if mobile broadband is enabled.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited