com.ardic.android.managers.networkconfig.INetworkConfigManager |
Provides set of API for network related configuration adjustment.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds new dns to the blacklist.
| |||||||||||
Clears the dns blacklist.
| |||||||||||
Connects to VPN server according to the VPN Profile with the given VPN profile name.
| |||||||||||
This method disconnects VPN connection of the device.
| |||||||||||
Returns list of all configured VPN Profiles on a device.
| |||||||||||
Returns all dns blacklist.
| |||||||||||
This method was deprecated
in API level 5.
in Android Lollipop
| |||||||||||
Returns configured global proxy infos.
| |||||||||||
Returns Hotspot Configuration
| |||||||||||
Gets VPN Profile Configuration of the given VPN Profile name.
| |||||||||||
Compares the given WifiConfiguration to hotspot configuration
| |||||||||||
Returns whether Bluetooth Tethering is blocked or not.
| |||||||||||
Queries if the specified dns is exist in dns blacklist or not.
| |||||||||||
Returns whether Hotspot configuration changing is blocked or not.
| |||||||||||
Returns whether Wi-Fi hotspot is ON or not.
| |||||||||||
Returns whether the device supports WiFi hotspot or not.
| |||||||||||
Return whether Tethering is blocked or unblocked.
| |||||||||||
Returns whether USB Tethering is blocked or not.
| |||||||||||
Returns whether VPN connections are blocked or not.
| |||||||||||
Checks whether VPN connection is established or not.
| |||||||||||
Returns whether Wi-Fi Tethering is blocked or not
| |||||||||||
Removes the dns from blacklist.
| |||||||||||
Deletes a previously configured VPN Profile on the device.
| |||||||||||
Saves a given VPN Profile configuration.
| |||||||||||
Sets/Resets block for Bluetooth Tethering.
| |||||||||||
This method was deprecated
in API level 5.
in Android Lollipop
| |||||||||||
Sets global proxy's host, port and pac configurations.
| |||||||||||
Sets Hotspot configuration
| |||||||||||
Sets/Resets hotspot configuration change blocking.
| |||||||||||
Turns ON/OFF Wi-Fi hotspot with given Wifi Configuration of the device.
| |||||||||||
Sets Tethering availability to blocked.
| |||||||||||
Sets/Resets block for USB Tethering.
| |||||||||||
Sets/Resets VPN blocking.
| |||||||||||
Sets/Resets Wi-Fi Tethering blocking.
|
Adds new dns to the blacklist.
Parameters | |
---|---|
dns |
String :
Definition of the dns |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Clears the dns blacklist.
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Connects to VPN server according to the VPN Profile with the given VPN profile name.
Parameters | |
---|---|
name |
String :
VPN Profile name |
Throws | |
---|---|
AfexException |
This method disconnects VPN connection of the device.
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Returns list of all configured VPN Profiles on a device.
Returns | |
---|---|
List<VpnProfileConfig> |
list of VpnProfileConfig objects for VPN Profile configurations or Empty list if there is no configured VPN Profiles. |
Throws | |
---|---|
AfexException |
This method was deprecated
in API level 5.
in Android Lollipop
Returns configured global proxy infos.
Returns | |
---|---|
ProxyProperties |
ProxyProperties Returns ProxyProperties object if set, else null |
Throws | |
---|---|
|
AfexException |
AfexException |
Returns configured global proxy infos. In Android Lollipop; After API level 21, This API
throws ERROR(/AfexExceptionType.NA)
Returns | |
---|---|
ProxyInfo |
ProxyInfo Returns ProxyInfo object if set, else null |
Throws | |
---|---|
AfexException |
Returns Hotspot Configuration
Returns | |
---|---|
WifiConfigBasic |
WifiConfigBasic for the hotspot |
Throws | |
---|---|
AfexException |
Gets VPN Profile Configuration of the given VPN Profile name.
Parameters | |
---|---|
name |
String :
VPN Profile name |
Returns | |
---|---|
VpnProfileConfig |
VPN Profile Configuration or null if there is no profile with the given name. |
Throws | |
---|---|
AfexException |
Compares the given WifiConfiguration to hotspot configuration
Parameters | |
---|---|
wc |
WifiConfiguration :
WifiConfiguration to be compared |
Returns | |
---|---|
boolean |
true if the configuration is equal false otherwise |
Throws | |
---|---|
AfexException |
Returns whether Bluetooth Tethering is blocked or not.
Returns | |
---|---|
boolean |
true if Bluetooth Tethering is blocked else false . |
Throws | |
---|---|
AfexException |
Queries if the specified dns is exist in dns blacklist or not.
Parameters | |
---|---|
dns |
String :
Defition of the dns |
Returns | |
---|---|
boolean |
true if the specified dns exists else false . |
Throws | |
---|---|
AfexException |
Returns whether Hotspot configuration changing is blocked or not. If hotspot configuration change is blocked user can not change SSID, Security Type and password defined for the mobile device.
Returns | |
---|---|
boolean |
true if Hotspot configuration change is blocked else false . |
Throws | |
---|---|
AfexException |
See also:
Returns whether Wi-Fi hotspot is ON or not.
Returns | |
---|---|
boolean |
true if Wi-Fi hotspot is ON else false |
Throws | |
---|---|
AfexException |
Returns whether the device supports WiFi hotspot or not.
Returns | |
---|---|
boolean |
true if Wi-Fi hotspot is supported on the device else false |
Throws | |
---|---|
AfexException |
Return whether Tethering is blocked or unblocked.
Returns | |
---|---|
boolean |
true if Tethering is blocked, false otherwise |
Throws | |
---|---|
AfexException |
See also:
Returns whether USB Tethering is blocked or not.
Returns | |
---|---|
boolean |
true if USB Tethering is blocked else false . |
Throws | |
---|---|
AfexException |
Returns whether VPN connections are blocked or not.
Returns | |
---|---|
boolean |
true if VPN access is blocked else false . |
Throws | |
---|---|
AfexException |
See also:
Checks whether VPN connection is established or not.
Returns | |
---|---|
boolean |
true if VPN connection is established else false . |
Throws | |
---|---|
AfexException |
Returns whether Wi-Fi Tethering is blocked or not
Returns | |
---|---|
boolean |
true if Wi-Fi Tethering is blocked else false . |
Throws | |
---|---|
AfexException |
See also:
Removes the dns from blacklist.
Parameters | |
---|---|
dns |
String :
Definition of the dns |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Deletes a previously configured VPN Profile on the device.
Parameters | |
---|---|
name |
String :
VPN Profile name |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Saves a given VPN Profile configuration. Since VPN configurations are stored in Android Keystore, Keystore state have to be UNLOCKED.
Parameters | |
---|---|
conf |
VpnProfileConfig :
VpnProfileConfig VPN Profile configuration |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Sets/Resets block for Bluetooth Tethering. If Bluetooth Tethering blocked mobile device can not be used by paired device for Internet connection. If all tethering is blocked, unblocking Bluetooth Tethering fails.
Parameters | |
---|---|
state |
boolean :
true to block Bluetooth Tethering, false otherwise |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
This method was deprecated
in API level 5.
in Android Lollipop
Sets global proxy's host, port and pac configurations.
Parameters | |
---|---|
pp |
ProxyProperties :
ProxyProperties Pass ProxyProperties object to set, null to reset |
Throws | |
---|---|
AfexException |
Sets global proxy's host, port and pac configurations. In Android Lollipop; After API level
21, This API throws ERROR(/AfexExceptionType.NA)
Parameters | |
---|---|
pi |
ProxyInfo
|
Throws | |
---|---|
AfexException |
Sets Hotspot configuration
Parameters | |
---|---|
wc |
WifiConfigBasic :
Hotspot Configuration |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Sets/Resets hotspot configuration change blocking. If hotspot configuration change is blocked user can not change SSID, Security Type and password defined for the mobile device.
Parameters | |
---|---|
state |
boolean :
true to block false to unblock. |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
See also:
Turns ON/OFF Wi-Fi hotspot with given Wifi Configuration of the device.
Parameters | |
---|---|
wc |
WifiConfiguration
|
state |
boolean
|
Returns | |
---|---|
boolean |
true if the operation succeeds else false |
Throws | |
---|---|
AfexException |
Sets Tethering availability to blocked.
In Blocking case; Tethering is turned OFF and it is blocked.
The Tethering can not be turned ON until it is unblocked.
In Unblocking case; Tethering is unblocked and it is turned ON
Parameters | |
---|---|
state |
boolean :
true to block Tethering, false to unblock. |
Returns | |
---|---|
boolean |
true if the operation succeeds (or if the existing state is the same as the
requested state) else false |
Throws | |
---|---|
AfexException |
See also:
Sets/Resets block for USB Tethering. If USB Tethering blocked mobile device can not be used by host device for Internet connection. If all tethering is blocked, unblocking USB Tethering fails.
Parameters | |
---|---|
state |
boolean :
true to block USB Tethering, false otherwise |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Sets/Resets VPN blocking. If VPN is blocked device can not connect to any VPN.
Parameters | |
---|---|
state |
boolean :
true to block VPN, false otherwise |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
See also:
Sets/Resets Wi-Fi Tethering blocking. If Wi-Fi Tethering is blocked mobile device can not be used as Wi-Fi AP by other devices. If all tethering is blocked, unblocking Wi-Fi Tethering fails.
Parameters | |
---|---|
state |
boolean :
true to block Wifi Tethering, false otherwise |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
See also: