com.ardic.android.managers.wificonfig.IWifiConfigManager |
Provides a set of APIs for Wi-Fi control.
Enables or disables Wi-Fi network connections(Wi-Fi Access Point Networks). Wi-Fi APNs can be specified as "black" and "white" or can be set as unconfigurable in order to impose a policy on Wi-Fi configurations.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds the given EAP method to the Allowed EAP Methods list.
| |||||||||||
Adds the given SSID as Unconfigurable(forbidden to configure).
| |||||||||||
Adds Wi-Fi APN with the given SSID as a Black item into AFEX Black-White list.
| |||||||||||
Specifies Wi-Fi APN with the given SSID as a White item into Black-White list.
| |||||||||||
Adds a Wi-Fi APN Connection policy.
| |||||||||||
Deletes all the Allowed EAP Methods list.
| |||||||||||
Removes all Black Wi-Fi APN SSIDs from Black-White list.
| |||||||||||
Removes all Wi-Fi APN SSIDs from Unconfigurable(forbidden to configure) list.
| |||||||||||
Removes all White Wi-Fi APN configurations from Black-White list.
| |||||||||||
Removes all saved Wi-Fi APN configurations on the device.
| |||||||||||
Removes all Wi-Fi APN Connection policy.
| |||||||||||
This method is used to connect to a specified Wi-Fi APN.
| |||||||||||
Returns all Allowed EAP Methods.
| |||||||||||
Returns the list of all configured Wi-Fi APN configurations on a device.
| |||||||||||
Returns list of in range Wi-Fi APNs' basic configurations.
| |||||||||||
Returns list of SSIDs for all Unconfigurable(forbidden to configure) Wi-Fi APN
configurations.
| |||||||||||
Returns all Wi-Fi APN Connection Policies.
| |||||||||||
Returns list of Black Wi-Fi APN SSIDs.
| |||||||||||
Returns security type of the Wi-Fi APN configuration with the given network ID.
| |||||||||||
Returns all White Wi-Fi APN SSIDs.
| |||||||||||
Returns Network ID of the given Wi-Fi APN Configuration.
| |||||||||||
Returns Wi-Fi APN Configuration for the given Network ID.
| |||||||||||
Returns whether Wi-Fi settings other than username and user password change is blocked or
not.
| |||||||||||
Checks whether the device is allowed to access (connect) to a Wi-Fi APN with the given SSID
according to Wi-Fi policy.
| |||||||||||
Returns whether new Wi-Fi APN configuring is blocked or not.
| |||||||||||
Returns whether a Wi-Fi APN configuration with the given SSID is already saved or not on the
device.
| |||||||||||
Checks whether Wi-Fi Configuration with the given SSID is a Black item in Black-White Wi-Fi
APN list or not.
| |||||||||||
Returns whether Wi-Fi APN with the given SSID is in Unconfigurable(forbidden to configure)
Wi-Fi APN list or not.
| |||||||||||
Checks whether Wi-Fi Configuration with the given SSID is a White item in Black-White list or
not.
| |||||||||||
Return whether Wi-Fi connection is blocked or unblocked.
| |||||||||||
Checks whether the Allowed EAP Methods list is empty.
| |||||||||||
Checks whether the given EAP Method is in the Allowed EAP Methods list.
| |||||||||||
Returns whether Wi-Fi connection is ON or not.
| |||||||||||
Returns whether Wi-Fi show password in Android Settings application is blocked or not.
| |||||||||||
Returns whether Wi-Fi connection state change is blocked or not.
| |||||||||||
Returns whether the device supports WiFi (802.11) networking or not.
| |||||||||||
Deletes the given EAP method from the Allowed EAP Methods list.
| |||||||||||
Removes Wi-Fi APN with the given SSID from the Unconfigurable(forbidden to configure) Wi-Fi
APN list.
| |||||||||||
Deletes a Wi-Fi APN configuration with the given network ID on the device.
| |||||||||||
Removes Wi-Fi APN SSID from Black items of Black-White Table.
| |||||||||||
Removes Wi-Fi APN SSID from White items of Black-White list.
| |||||||||||
Removes a Wi-Fi APN Connection Policy.
| |||||||||||
Stores a given Wi-Fi APN Configuration on a device.
| |||||||||||
For Wi-Fi networks with security type EAP, disables the ability to change settings other than
username and user password of an already configured Wi-Fi APN.
| |||||||||||
Blocks (disables) configuring a new Wi-Fi APN on the device.
| |||||||||||
Sets Wi-Fi connection to blocked.
| |||||||||||
Disables the ability to show Wi-Fi password in Android Settings application.
| |||||||||||
Turns ON/OFF Wi-Fi connection of the device.
| |||||||||||
Disables the ability to change Wi-Fi connection state.
|
Adds the given EAP method to the Allowed EAP Methods list. If the Allowed EAP Methods list is empty, any EAP method can be selected during Enterprise Wi-Fi APN set up. Otherwise, only EAP methods in the Allowed EAP Methods list can be configured.
Parameters | |
---|---|
mname |
WifiConfigEnterpriseField.EapMethod :
given EAP Method. One of EAP_METHOD_PEAP
EAP_METHOD_TLS , EAP_METHOD_TTLS ,
EAP_METHOD_PWD |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Adds the given SSID as Unconfigurable(forbidden to configure). Wi-Fi APN configurations with the given SSID can not be saved. If there is an already saved Wi-Fi APN configuration having the given SSID, it is not removed implicitly.
Parameters | |
---|---|
ssid |
String :
SSID of the Wi-Fi APN |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Adds Wi-Fi APN with the given SSID as a Black item into AFEX Black-White list. Black-White item list specifies Wi-Fi APNs that are accessible (connectable) based on specified Wi-Fi policy. If Wi-Fi policy is set as black then SSIDs in black list are not accessible(connection is not allowed) for the device. If Wi-Fi policy is set as white then SSIDs in white list are the only accessible Wi-Fi APNs for the device. Device can not connect to any other SSIDs. If both black and white Wi-Fi Policies are activated, accessibility is checked in the order given.
Parameters | |
---|---|
ssid |
String :
SSID of the Wi-Fi APN. |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Specifies Wi-Fi APN with the given SSID as a White item into Black-White list. Black-White item list specifies Wi-Fi APNs that are accessible (connectable) based on specified Wi-Fi policy. If Wi-Fi policy is set as black then SSIDs in black list are not accessible(connection is not allowed) for the device. If Wi-Fi policy is set as white then SSIDs in white list are the only accessible Wi-Fi APNs for the device. Device can not connect to any other SSIDs. If both black and white Wi-Fi Policies are activated, accessibility is checked in the order given.
Parameters | |
---|---|
ssid |
String :
SSID of the Wi-Fi APN. |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Adds a Wi-Fi APN Connection policy. Policy can be either White (Only allow trusted) or Black (do not allow untrusted) or both. When both policies are added, they are checked in the given policyOrder. After Policy is added connectivity policy of the currently connected Wi-Fi APN is evaluated and if it is not accessible, system disconnects from the APN.
false
false
true
Parameters | |
---|---|
policyName |
PolicyItem.PolicyName :
POLICYNAME_BLACKLIST for black list policy
POLICYNAME_WHITELIST for white list policy |
policyOrder |
int :
integer. Larger value means higher priority. |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Deletes all the Allowed EAP Methods list. If the Allowed EAP Methods list is empty, any EAP method can be selected during Enterprise Wi-Fi APN set up. Otherwise, only EAP methods in the Allowed EAP Methods list can be configured.
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Removes all Black Wi-Fi APN SSIDs from Black-White list. Black-White item list specifies Wi-Fi APNs that are accessible (connectable) based on specified Wi-Fi policy. If Wi-Fi policy is set as black then SSIDs in black list are not accessible(connection is not allowed) for the device. If Wi-Fi policy is set as white then SSIDs in white list are the only accessible Wi-Fi APNs for the device. Device can not connect to any other SSIDs. If both black and white Wi-Fi Policies are activated, accessibility is checked in the order given.
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Removes all Wi-Fi APN SSIDs from Unconfigurable(forbidden to configure) list.
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Removes all White Wi-Fi APN configurations from Black-White list. Black-White item list specifies Wi-Fi APNs that are accessible (connectable) based on specified Wi-Fi policy. If Wi-Fi policy is set as black then SSIDs in black list are not accessible(connection is not allowed) for the device. If Wi-Fi policy is set as white then SSIDs in white list are the only accessible Wi-Fi APNs for the device. Device can not connect to any other SSIDs. If both black and white Wi-Fi Policies are activated, accessibility is checked in the order given.
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Removes all saved Wi-Fi APN configurations on the device.
Returns | |
---|---|
boolean |
true if the operation succeeds else false . When Wi-Fi is OFF, it
returns false . |
Throws | |
---|---|
AfexException |
Removes all Wi-Fi APN Connection policy.
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
This method is used to connect to a specified Wi-Fi APN.
Parameters | |
---|---|
netId |
int :
Network Id (non-negative Integer) >= 0 of Wi-Fi APN configuration. |
Returns | |
---|---|
boolean |
true if device is able to connect to the Wi-Fi APN, otherwise false |
Throws | |
---|---|
AfexException |
Returns all Allowed EAP Methods. If the Allowed EAP Methods list is empty, any EAP method can be selected during Enterprise Wi-Fi APN set up. Otherwise, only EAP methods in the Allowed EAP Methods list can be configured.
Returns | |
---|---|
List<WifiConfigEnterpriseField.EapMethod> |
the list of Allowed EAP Methods. |
Throws | |
---|---|
AfexException |
See also:
Returns the list of all configured Wi-Fi APN configurations on a device.
Returns | |
---|---|
List<WifiConfigBasic> |
Basic Wi-Fi Configuration list of the saved Wi-Fi APN configurations. Upon failure to fetch or when Wi-Fi connection is OFF, it returns empty list. |
Throws | |
---|---|
AfexException |
Returns list of in range Wi-Fi APNs' basic configurations.
Returns | |
---|---|
List<WifiConfigBasic> |
WifiConfigBasic list of the Wi-Fi APNs in range. When Wi-Fi connection is OFF, it returns empty list. |
Throws | |
---|---|
AfexException |
Returns list of SSIDs for all Unconfigurable(forbidden to configure) Wi-Fi APN configurations.
Returns | |
---|---|
List<String> |
SSID list of all unconfigurable Wi-Fi APN configurations. |
Throws | |
---|---|
AfexException |
Returns all Wi-Fi APN Connection Policies. Policy can be either White (Only allow trusted) or Black (do not allow untrusted).
Returns | |
---|---|
List<PolicyItem> |
PolicyItem list of Wi-Fi APN policies. |
Throws | |
---|---|
AfexException |
Returns list of Black Wi-Fi APN SSIDs. Black-White item list specifies Wi-Fi APNs that are accessible (connectable) based on specified Wi-Fi policy. If Wi-Fi policy is set as black then SSIDs in black list are not accessible(connection is not allowed) for the device. If Wi-Fi policy is set as white then SSIDs in white list are the only accessible Wi-Fi APNs for the device. Device can not connect to any other SSIDs. If both black and white Wi-Fi Policies are activated, accessibility is checked in the order given.
Returns | |
---|---|
List<String> |
SSID list of Black Wi-Fi APN configurations. |
Throws | |
---|---|
AfexException |
Returns security type of the Wi-Fi APN configuration with the given network ID.
Parameters | |
---|---|
netId |
int :
Network ID of the Wi-Fi APN configuration. |
Returns | |
---|---|
WifiConfigBasic.SecurityType |
securityType SecurityType of Wi-Fi APN |
Throws | |
---|---|
AfexException |
Returns all White Wi-Fi APN SSIDs. Black-White item list specifies Wi-Fi APNs that are accessible (connectable) based on specified Wi-Fi policy. If Wi-Fi policy is set as black then SSIDs in black list are not accessible(connection is not allowed) for the device. If Wi-Fi policy is set as white then SSIDs in white list are the only accessible Wi-Fi APNs for the device. Device can not connect to any other SSIDs. If both black and white Wi-Fi Policies are activated, accessibility is checked in the order given.
Returns | |
---|---|
List<String> |
SSID list of White Wi-Fi APN configurations. |
Throws | |
---|---|
AfexException |
Returns Network ID of the given Wi-Fi APN Configuration.
Parameters | |
---|---|
wcBasic |
WifiConfigBasic :
Basic Wi-Fi APN configuration. |
Returns | |
---|---|
int |
-1 if the given Wi-Fi APN configuration does not exist, otherwise, ID number
of the network. Upon failure to fetch or when Wi-Fi connection is OFF, it returns
-1 . |
Throws | |
---|---|
AfexException |
Returns Wi-Fi APN Configuration for the given Network ID.
Parameters | |
---|---|
netId |
int :
Network Id (non-negative Integer) >= 0 of the Wi-Fi APN configuration. |
Returns | |
---|---|
WifiConfig |
WifiConfig object for Wi-Fi Configuration of the given network ID. |
Throws | |
---|---|
AfexException |
Returns whether Wi-Fi settings other than username and user password change is blocked or not.
Returns | |
---|---|
boolean |
true if Wi-Fi settings other than username and user password state change is
blocked, false otherwise. |
Throws | |
---|---|
AfexException |
See also:
Checks whether the device is allowed to access (connect) to a Wi-Fi APN with the given SSID according to Wi-Fi policy.
false
false
true
Parameters | |
---|---|
ssid |
String :
SSID of the Wi-Fi APN |
Returns | |
---|---|
boolean |
true if device is allowed to connect to the Wi-Fi APN, false
otherwise. |
Throws | |
---|---|
AfexException |
See also:
Returns whether new Wi-Fi APN configuring is blocked or not. If Wi-Fi APN Add is blocked, user can not configure any Wi-Fi APN.
Returns | |
---|---|
boolean |
true if Wi-Fi APN configuration add is blocked, false otherwise. |
Throws | |
---|---|
AfexException |
See also:
Returns whether a Wi-Fi APN configuration with the given SSID is already saved or not on the device.
Parameters | |
---|---|
ssid |
String :
SSID of the Wi-Fi APN |
Returns | |
---|---|
boolean |
true if Wi-Fi APN is already among saved configurations. false Upon
failure to fetch or when Wi-Fi is OFF. |
Throws | |
---|---|
AfexException |
Checks whether Wi-Fi Configuration with the given SSID is a Black item in Black-White Wi-Fi APN list or not. Black-White item list specifies Wi-Fi APNs that are accessible (connectable) based on specified Wi-Fi policy. If Wi-Fi policy is set as black then SSIDs in black list are not accessible(connection is not allowed) for the device. If Wi-Fi policy is set as white then SSIDs in white list are the only accessible Wi-Fi APNs for the device. Device can not connect to any other SSIDs. If both black and white Wi-Fi Policies are activated, accessibility is checked in the order given.
Parameters | |
---|---|
ssid |
String :
SSID of the Wi-Fi APN |
Returns | |
---|---|
boolean |
true if the Wi-Fi APN is a Black item in AFEX Black-White policy, otherwise
false . |
Throws | |
---|---|
AfexException |
Returns whether Wi-Fi APN with the given SSID is in Unconfigurable(forbidden to configure) Wi-Fi APN list or not.
Parameters | |
---|---|
ssid |
String :
Wi-Fi APN SSID |
Returns | |
---|---|
boolean |
true if SSID is in the list false otherwise. |
Throws | |
---|---|
AfexException |
Checks whether Wi-Fi Configuration with the given SSID is a White item in Black-White list or not. Black-White item list specifies Wi-Fi APNs that are accessible (connectable) based on specified Wi-Fi policy. If Wi-Fi policy is set as black then SSIDs in black list are not accessible(connection is not allowed) for the device. If Wi-Fi policy is set as white then SSIDs in white list are the only accessible Wi-Fi APNs for the device. Device can not connect to any other SSIDs. If both black and white Wi-Fi Policies are activated, accessibility is checked in the order given.
Parameters | |
---|---|
ssid |
String :
SSID of the Wi-Fi APN |
Returns | |
---|---|
boolean |
true if the Wi-Fi APN is a White item in Black-White list, otherwise
false |
Throws | |
---|---|
AfexException |
Return whether Wi-Fi connection is blocked or unblocked.
Returns | |
---|---|
boolean |
true if Wi-Fi is blocked, false otherwise |
Throws | |
---|---|
AfexException |
See also:
Checks whether the Allowed EAP Methods list is empty. If the Allowed EAP Methods list is empty, any EAP method can be selected during Enterprise Wi-Fi APN set up. Otherwise, only EAP methods in the Allowed EAP Methods list can be configured.
Returns | |
---|---|
boolean |
true if the the list is empty false otherwise. |
Throws | |
---|---|
AfexException |
Checks whether the given EAP Method is in the Allowed EAP Methods list. If the Allowed EAP Methods list is empty, any EAP method can be selected during Enterprise Wi-Fi APN set up. Otherwise, only EAP methods in the Allowed EAP Methods list can be configured.
Parameters | |
---|---|
mname |
WifiConfigEnterpriseField.EapMethod :
given EAP Method. One of EAP_METHOD_PEAP ,
EAP_METHOD_TLS , EAP_METHOD_TTLS ,
EAP_METHOD_PWD |
Returns | |
---|---|
boolean |
true if the EAP method is in the list false otherwise. |
Throws | |
---|---|
AfexException |
See also:
Returns whether Wi-Fi connection is ON or not.
Returns | |
---|---|
boolean |
true if Wi-Fi connection is ON else false |
Throws | |
---|---|
AfexException |
Returns whether Wi-Fi show password in Android Settings application is blocked or not.
Returns | |
---|---|
boolean |
true if Wi-Fi show password is blocked, false otherwise. |
Throws | |
---|---|
AfexException |
See also:
Returns whether Wi-Fi connection state change is blocked or not. If state change is blocked Wi-Fi connection remains its current state(No state changes occur).
Returns | |
---|---|
boolean |
true if Wi-Fi connection state change is blocked, false otherwise. |
Throws | |
---|---|
AfexException |
See also:
Returns whether the device supports WiFi (802.11) networking or not.
Returns | |
---|---|
boolean |
true if Wi-Fi is supported on the device else false |
Throws | |
---|---|
AfexException |
Deletes the given EAP method from the Allowed EAP Methods list. If the Allowed EAP Methods list is empty, any EAP method can be selected during Enterprise Wi-Fi APN set up. Otherwise, only EAP methods in the Allowed EAP Methods list can be configured.
Parameters | |
---|---|
mname |
WifiConfigEnterpriseField.EapMethod :
given EAP Method. One of EAP_METHOD_PEAP ,
EAP_METHOD_TLS , EAP_METHOD_TTLS ,
EAP_METHOD_PWD |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
See also:
Removes Wi-Fi APN with the given SSID from the Unconfigurable(forbidden to configure) Wi-Fi APN list.
Parameters | |
---|---|
ssid |
String :
SSID of the Wi-Fi APN configuration. |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Deletes a Wi-Fi APN configuration with the given network ID on the device.
Parameters | |
---|---|
netId |
int :
Network ID of the Wi-Fi APN Configuration on the device. |
Returns | |
---|---|
boolean |
true if the operation succeeds, else false . When Wi-Fi connection is
OFF, it returns false . |
Throws | |
---|---|
AfexException |
Removes Wi-Fi APN SSID from Black items of Black-White Table. Black-White item list specifies Wi-Fi APNs that are accessible (connectable) based on specified Wi-Fi policy. If Wi-Fi policy is set as black then SSIDs in black list are not accessible(connection is not allowed) for the device. If Wi-Fi policy is set as white then SSIDs in white list are the only accessible Wi-Fi APNs for the device. Device can not connect to any other SSIDs. If both black and white Wi-Fi Policies are activated, accessibility is checked in the order given.
Parameters | |
---|---|
ssid |
String :
SSID of the Wi-Fi APN |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Removes Wi-Fi APN SSID from White items of Black-White list. Black-White item list specifies Wi-Fi APNs that are accessible (connectable) based on specified Wi-Fi policy. If Wi-Fi policy is set as black then SSIDs in black list are not accessible(connection is not allowed) for the device. If Wi-Fi policy is set as white then SSIDs in white list are the only accessible Wi-Fi APNs for the device. Device can not connect to any other SSIDs. If both black and white Wi-Fi Policies are activated, accessibility is checked in the order given.
Parameters | |
---|---|
ssid |
String :
SSID of the Wi-Fi APN |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Removes a Wi-Fi APN Connection Policy.
Parameters | |
---|---|
policyName |
PolicyItem.PolicyName :
name of the Wi-Fi APN policy, either White or Black. |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Stores a given Wi-Fi APN Configuration on a device. In order to save the configuration Wi-Fi connection must be ON.
Parameters | |
---|---|
wc |
WifiConfig :
WifiConfig for the Wi-Fi Configuration to be saved. |
Returns | |
---|---|
int |
Network Id (non-negative Integer) >= 0 of Wi-Fi Configuration. If operation
fails returns -1 . |
Throws | |
---|---|
AfexException |
For Wi-Fi networks with security type EAP, disables the ability to change settings other than username and user password of an already configured Wi-Fi APN.
In Blocking case; If Wi-Fi APN with security type EAP is already configured, changing Wi-Fi settings other than username and user password is prevented.
In Unblocking case; Wi-Fi APN configuration can be changed.
Parameters | |
---|---|
state |
boolean :
true to block Wi-Fi APN configuration change, false to unblock. |
Returns | |
---|---|
boolean |
true if the operation succeeds, else false |
Throws | |
---|---|
AfexException |
Blocks (disables) configuring a new Wi-Fi APN on the device. User can not add any Wi-Fi APN configuration if blocked.
Parameters | |
---|---|
state |
boolean :
true to block false to unblock. |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
See also:
Sets Wi-Fi connection to blocked. If Wi-Fi state change is also blocked Wi-Fi connection state does not change and Wi-Fi blocking fails. Hence Wi-Fi state change block has a higher priority compared to Wi-Fi connection blocking.
In Blocking case; Wi-Fi is turned OFF and it is blocked.
The Wi-Fi can not be turned ON until it is unblocked.
In Unblocking case; Wi-Fi is unblocked and it can be turned ON.
Parameters | |
---|---|
state |
boolean :
true to block Wi-Fi, 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:
Disables the ability to show Wi-Fi password in Android Settings application.
In Blocking case; User can not check UI dialog to show password entered for Wi-Fi APN authentication.
In Unblocking case; User can check UI dialog to show password entered for Wi-Fi APN authentication.
Parameters | |
---|---|
state |
boolean :
true to block Wi-Fi show password, false to unblock. |
Returns | |
---|---|
boolean |
true if the operation succeeds, else false |
Throws | |
---|---|
AfexException |
See also:
Turns ON/OFF Wi-Fi connection of the device.
Parameters | |
---|---|
onOff |
boolean :
boolean true to enable, false to disable Wi-Fi connection. |
Returns | |
---|---|
boolean |
true if the operation succeeds else false |
Throws | |
---|---|
AfexException |
Disables the ability to change Wi-Fi connection state.
In Blocking case; If Wi-Fi state is ON it remains ON and can not be turned OFF by App UID. If Wi-Fi state is OFF it remains OFF and can not be turned ON by App UID.
The Wi-Fi state can not be changed until it is unblocked.
In Unblocking case; Wi-Fi can be disabled(Turned OFF) or enabled(Turn ON) by App UID.
Parameters | |
---|---|
state |
boolean :
true to block Wi-Fi state change, false to unblock. |
Returns | |
---|---|
boolean |
true if the operation succeeds, else false |
Throws | |
---|---|
AfexException |
See also: