Interface NetworkChanged

All Superinterfaces:
Event, NetworkEvent

public interface NetworkChanged extends NetworkEvent
An event indicating a change in the current network connection.

The event is triggered whenever a change affects the route network packets take to any network server.

For example, the event is triggered when:

  • A network connection becomes available or going away;
  • A VPN tunnel is established or taken down;
  • An active network connection's IP address changes.
Since:
7.17
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the connection type of the network at the time of the event.
    default Network
    Returns the Network instance initiated this event.
  • Method Details

    • network

      default Network network()
      Description copied from interface: NetworkEvent
      Returns the Network instance initiated this event.
      Specified by:
      network in interface NetworkEvent
    • connectionType

      default ConnectionType connectionType()
      Returns the connection type of the network at the time of the event.