public class

NetworkManager

extends Object
java.lang.Object
   ↳ com.datalogic.os.network.NetworkManager

Class Overview

The NetworkManager class provides access to network-related services on the device, including the ability to inspect DHCP options received on network interfaces.

Obtain an instance by calling the constructor. The service connection is established at construction time and a DeviceException is thrown if the underlying service is unavailable.

Summary

Nested Classes
interface NetworkManager.NetworkEventListener Listener interface used to receive notifications about network events, such as DHCP options received on a network interface. 
Public Constructors
NetworkManager()
This is the constructor of NetworkManager.
Public Methods
boolean addNetworkEventListener(NetworkManager.NetworkEventListener listener)
Add a listener to receive notifications about network events.
boolean removeNetworkEventListener(NetworkManager.NetworkEventListener listener)
Remove a previously registered listener.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public NetworkManager ()

Added in revision 51

This is the constructor of NetworkManager.

Throws
DeviceException in case of error.

Public Methods

public boolean addNetworkEventListener (NetworkManager.NetworkEventListener listener)

Added in revision 51

Add a listener to receive notifications about network events. The listener will be invoked with the current data as soon as it is registered.

Parameters
listener The listener to add.
Returns
  • true if the listener was successfully added, false otherwise.

public boolean removeNetworkEventListener (NetworkManager.NetworkEventListener listener)

Added in revision 51

Remove a previously registered listener.

Parameters
listener The listener to remove.
Returns
  • true if the listener was successfully removed, false otherwise.