Skip to content

Network Interface Class Pattern

The Network Interface Class Pattern defines a common interface for objects that provide access to network interfaces, such as Ethernet and Wi-Fi.

A read-only property indicating the current connection state of the network interface.

A read-only string representing the MAC address assigned to the network interface.

A read-only string representing the IP address assigned to the network interface.

Initiates the process of connecting to a network.

Disconnects the network interface from the network.

A callback function invoked when the state of the network interface changes.

Network Interface Class Pattern