| java.lang.Object | |
| ↳ | com.datalogic.device.wifi.WifiManager |
The WifiManager class enables the user to control the Wi-Fi adapter behaviour. It also permits the manipulation of arbitrary Wi-Fi profiles.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| WifiManager.SleepPolicy | The policy for deciding when Wi-Fi should go to sleep (which will in turn switch to using the mobile data as an Internet connection). | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This is the constructor of the WifiManager class.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns whether the Wi-Fi data connection should remain active even when higher priority
networks like Ethernet are active, to keep both networks.
| |||||||||||
Gets whether to notify the user of open networks or not.
| |||||||||||
Gets the current policy for deciding when Wi-Fi should go to sleep (which will in turn switch
to using the mobile data as an Internet connection).
| |||||||||||
Returns builder-pattern instance to be used to configure a Wi-Fi profile.
| |||||||||||
Sets whether the Wi-Fi data connection should remain active even when higher priority
networks like Ethernet are active, to keep both networks.
| |||||||||||
Sets whether to notify the user of open networks or not.
| |||||||||||
Sets the current policy for deciding when Wi-Fi should go to sleep (which will in turn switch
to using the mobile data as an Internet connection).
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
This is the constructor of the WifiManager class.
| in case of error. |
Returns whether the Wi-Fi data connection should remain active even when higher priority networks like Ethernet are active, to keep both networks. In the case where higher priority networks are connected, Wi-Fi will be unused unless an application explicitly requests to use it.
Gets whether to notify the user of open networks or not.
Gets the current policy for deciding when Wi-Fi should go to sleep (which will in turn switch to using the mobile data as an Internet connection).
WifiManager.SleepPolicy status value.
Returns builder-pattern instance to be used to configure a Wi-Fi profile.
| essid | ESSID of the network to which the profile will be bound. This is the only mandatory field for a profile (e.g. in the case the profile is only used to check for existence). |
|---|
WifiProfile.Builder instance.
Sets whether the Wi-Fi data connection should remain active even when higher priority networks like Ethernet are active, to keep both networks. In the case where higher priority networks are connected, Wi-Fi will be unused unless an application explicitly requests to use it.
| alwaysRequested | a boolean value indicating if the Wi-Fi data connection should remain active. |
|---|
Sets whether to notify the user of open networks or not.
| notifyAvailableNetworks | a boolean value indicating if open networks are notified to the user or not. |
|---|
Sets the current policy for deciding when Wi-Fi should go to sleep (which will in turn switch to using the mobile data as an Internet connection).
| sleepPolicy | the WifiManager.SleepPolicy policy to be used.
|
|---|