NetworkManagerClient class
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.
no setter
-
activeConnectionRemoved
→ Stream<
NetworkManagerActiveConnection> -
Stream of active connections as they are removed.
no setter
-
activeConnections
→ List<
NetworkManagerActiveConnection> -
Currently active connections.
no setter
-
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.
no setter
- connectivity → NetworkManagerConnectivityState
-
The result of the last connectivity check.
no setter
- connectivityCheckAvailable → bool
-
True if connectivity checking is available.
no setter
- connectivityCheckEnabled → bool
-
True if connectivity checking is enabled.
no setter
- connectivityCheckUri → String
-
URI used for connectivity checking.
no setter
-
deviceAdded
→ Stream<
NetworkManagerDevice> -
Stream of devices as they are added.
no setter
-
deviceRemoved
→ Stream<
NetworkManagerDevice> -
Stream of devices as they are removed.
no setter
-
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).
no setter
- dnsManager → NetworkManagerDnsManager
-
Gets the DNS manager object.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- metered → NetworkManagerMetered
-
True if the primary connection has traffic limitations.
no setter
- networkingEnabled → bool
-
True if networking is enabled.
no setter
- primaryConnection → NetworkManagerActiveConnection?
-
The primary connection being used to access the network.
no setter
- primaryConnectionType → String
-
The type of connection being used to access the network.
no setter
-
propertiesChanged
→ Stream<
List< String> > -
Stream of property names as their values change.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settings → NetworkManagerSettings
-
Gets the settings object.
no setter
- startup → bool
-
True is NetworkManager is still starting up.
no setter
- state → NetworkManagerState
-
The overall networking state.
no setter
- version → String
-
The version of NetworkManager running.
no setter
- wirelessEnabled → bool
-
True if wireless network is enabled.
no setter
- wirelessHardwareEnabled → bool
-
True if wireless network is enabled via a hardware switch.
no setter
- wwanEnabled → bool
-
True if mobile broadband is enabled.
no setter
- wwanHardwareEnabled → bool
-
True if mobile broadband is enabled via a hardware switch.
no setter
Methods
-
activateConnection(
{required NetworkManagerDevice device, NetworkManagerSettingsConnection? connection, NetworkManagerAccessPoint? accessPoint}) → Future< NetworkManagerActiveConnection> -
Activates a connection for
device
. -
addAndActivateConnection(
{Map< String, Map< connection = const {}, required NetworkManagerDevice device, NetworkManagerAccessPoint? accessPoint}) → Future<String, DBusValue> >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 nonexistent 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