# NetworkManager ## Méthodes ### NetworkManager.ConnectWifiNetwork ADMIN Connect to the wifi network with the given ssid and password. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `interface` | `String` | | | `password` | `String` | optionnel | | `ssid` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `networkManagerError` | [NetworkManagerError](../types.md#networkmanagererror) | | --- ### NetworkManager.CreateWiredConnection ADMIN Create a wired connection. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `interface` | `String` | | | `dns` | `String` | optionnel | | `gateway` | `String` | optionnel | | `ip` | `String` | optionnel | | `prefix` | `Uint` | optionnel | | `type` | [WiredNetworkConnectionType](../types.md#wirednetworkconnectiontype) | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `networkManagerError` | [NetworkManagerError](../types.md#networkmanagererror) | | --- ### NetworkManager.DisconnectInterface ADMIN Disconnect the given network interface. The interface will remain disconnected until the user connect it again. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `interface` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `networkManagerError` | [NetworkManagerError](../types.md#networkmanagererror) | | --- ### NetworkManager.EnableNetworking ADMIN Enable or disable networking in the NetworkManager. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `enable` | `Bool` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `networkManagerError` | [NetworkManagerError](../types.md#networkmanagererror) | | --- ### NetworkManager.EnableWirelessNetworking ADMIN Enable or disable wireless networking in the NetworkManager. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `enable` | `Bool` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `networkManagerError` | [NetworkManagerError](../types.md#networkmanagererror) | | --- ### NetworkManager.GetNetworkDevices ADMIN Get the list of current network devices. **Paramètres :** _Aucun paramètre._ **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `networkManagerError` | [NetworkManagerError](../types.md#networkmanagererror) | | | `wiredNetworkDevices` | [WiredNetworkDevice](../types.md#wirednetworkdevice)[] | optionnel | | `wirelessNetworkDevices` | [WirelessNetworkDevice](../types.md#wirelessnetworkdevice)[] | optionnel | --- ### NetworkManager.GetNetworkStatus ADMIN Get the current network manager status. **Paramètres :** _Aucun paramètre._ **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `networkManagerError` | [NetworkManagerError](../types.md#networkmanagererror) | | | `status` | `{'networkingEnabled': 'Bool', 'state': '$ref:NetworkManagerState', 'wirelessNetworkingEnabled': 'Bool'}` | optionnel | --- ### NetworkManager.GetWirelessAccessPoints ADMIN Get the current list of wireless network access points for the given interface. The interface has to be a WirelessNetworkDevice. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `interface` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `networkManagerError` | [NetworkManagerError](../types.md#networkmanagererror) | | | `wirelessAccessPoints` | [WirelessAccessPoint](../types.md#wirelessaccesspoint)[] | optionnel | --- ### NetworkManager.ScanWifiNetworks ADMIN Start a wifi scan for searching new networks. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `interface` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `networkManagerError` | [NetworkManagerError](../types.md#networkmanagererror) | | --- ### NetworkManager.StartAccessPoint ADMIN Start a WiFi Access point on the given interface with the given SSID and password. Use DisconnectInterface to stop it again. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `interface` | `String` | | | `password` | `String` | | | `ssid` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `networkManagerError` | [NetworkManagerError](../types.md#networkmanagererror) | | --- ## Notifications ### NetworkManager.NetworkStatusChanged Emitted whenever a status of a NetworkManager changes. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `status` | `{'networkingEnabled': 'Bool', 'state': '$ref:NetworkManagerState', 'wirelessNetworkingEnabled': 'Bool'}` | | --- ### NetworkManager.WiredNetworkDeviceAdded Emitted whenever a new WiredNetworkDevice was added. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `wiredNetworkDevice` | [WiredNetworkDevice](../types.md#wirednetworkdevice) | | --- ### NetworkManager.WiredNetworkDeviceChanged Emitted whenever the given WiredNetworkDevice has changed. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `wiredNetworkDevice` | [WiredNetworkDevice](../types.md#wirednetworkdevice) | | --- ### NetworkManager.WiredNetworkDeviceRemoved Emitted whenever a WiredNetworkDevice was removed. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `interface` | `String` | | --- ### NetworkManager.WirelessNetworkDeviceAdded Emitted whenever a new WirelessNetworkDevice was added. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `wirelessNetworkDevice` | [WirelessNetworkDevice](../types.md#wirelessnetworkdevice) | | --- ### NetworkManager.WirelessNetworkDeviceChanged Emitted whenever the given WirelessNetworkDevice has changed. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `wirelessNetworkDevice` | [WirelessNetworkDevice](../types.md#wirelessnetworkdevice) | | --- ### NetworkManager.WirelessNetworkDeviceRemoved Emitted whenever a WirelessNetworkDevice was removed. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `interface` | `String` | | ---