| java.lang.Object | |
| ↳ | com.datalogic.os.network.NetworkManager |
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.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| NetworkManager.NetworkEventListener | Listener interface used to receive notifications about network events, such as DHCP options received on a network interface. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This is the constructor of NetworkManager.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Add a listener to receive notifications about network events.
| |||||||||||
Remove a previously registered listener.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
This is the constructor of NetworkManager.
| DeviceException | in case of error. |
|---|
Add a listener to receive notifications about network events. The listener will be invoked with the current data as soon as it is registered.
| listener | The listener to add. |
|---|
true if the listener was successfully added, false otherwise.
Remove a previously registered listener.
| listener | The listener to remove. |
|---|
true if the listener was successfully removed, false otherwise.