WifiManager.RemoveNetworkSuggestions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RemoveNetworkSuggestions(IList<WifiNetworkSuggestion>) |
Remove some or all of the network suggestions that were previously provided by the app. |
RemoveNetworkSuggestions(IList<WifiNetworkSuggestion>, Int32) |
Remove some or all of the network suggestions that were previously provided by the app. |
RemoveNetworkSuggestions(IList<WifiNetworkSuggestion>)
Remove some or all of the network suggestions that were previously provided by the app.
[Android.Runtime.Register("removeNetworkSuggestions", "(Ljava/util/List;)I", "GetRemoveNetworkSuggestions_Ljava_util_List_Handler", ApiSince=29)]
[Android.Runtime.RequiresPermission("android.permission.CHANGE_WIFI_STATE")]
public virtual Android.Net.Wifi.NetworkStatus RemoveNetworkSuggestions (System.Collections.Generic.IList<Android.Net.Wifi.WifiNetworkSuggestion> networkSuggestions);
[<Android.Runtime.Register("removeNetworkSuggestions", "(Ljava/util/List;)I", "GetRemoveNetworkSuggestions_Ljava_util_List_Handler", ApiSince=29)>]
[<Android.Runtime.RequiresPermission("android.permission.CHANGE_WIFI_STATE")>]
abstract member RemoveNetworkSuggestions : System.Collections.Generic.IList<Android.Net.Wifi.WifiNetworkSuggestion> -> Android.Net.Wifi.NetworkStatus
override this.RemoveNetworkSuggestions : System.Collections.Generic.IList<Android.Net.Wifi.WifiNetworkSuggestion> -> Android.Net.Wifi.NetworkStatus
Parameters
- networkSuggestions
- IList<WifiNetworkSuggestion>
List of network suggestions to be removed. Pass an empty list to remove all the previous suggestions provided by the app.
Returns
Status code for the operation. One of the STATUS_NETWORK_SUGGESTIONS_*
values. Any matching suggestions are removed from the device and will not be considered for
any further connection attempts.
- Attributes
Remarks
Remove some or all of the network suggestions that were previously provided by the app. If one of the suggestions being removed was used to establish connection to the current network, then the device will immediately disconnect from that network. This method is same as #removeNetworkSuggestions(List, int)
with #ACTION_REMOVE_SUGGESTION_DISCONNECT
See WifiNetworkSuggestion
for a detailed explanation of the parameters. See WifiNetworkSuggestion#equals(Object)
for the equivalence evaluation used.
</ Note: Use #removeNetworkSuggestions(List, int)
. An action
of #ACTION_REMOVE_SUGGESTION_DISCONNECT
is equivalent to the current behavior.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
RemoveNetworkSuggestions(IList<WifiNetworkSuggestion>, Int32)
Remove some or all of the network suggestions that were previously provided by the app.
[Android.Runtime.Register("removeNetworkSuggestions", "(Ljava/util/List;I)I", "GetRemoveNetworkSuggestions_Ljava_util_List_IHandler", ApiSince=33)]
[Android.Runtime.RequiresPermission("android.permission.CHANGE_WIFI_STATE")]
public virtual Android.Net.Wifi.NetworkStatus RemoveNetworkSuggestions (System.Collections.Generic.IList<Android.Net.Wifi.WifiNetworkSuggestion> networkSuggestions, int action);
[<Android.Runtime.Register("removeNetworkSuggestions", "(Ljava/util/List;I)I", "GetRemoveNetworkSuggestions_Ljava_util_List_IHandler", ApiSince=33)>]
[<Android.Runtime.RequiresPermission("android.permission.CHANGE_WIFI_STATE")>]
abstract member RemoveNetworkSuggestions : System.Collections.Generic.IList<Android.Net.Wifi.WifiNetworkSuggestion> * int -> Android.Net.Wifi.NetworkStatus
override this.RemoveNetworkSuggestions : System.Collections.Generic.IList<Android.Net.Wifi.WifiNetworkSuggestion> * int -> Android.Net.Wifi.NetworkStatus
Parameters
- networkSuggestions
- IList<WifiNetworkSuggestion>
List of network suggestions to be removed. Pass an empty list to remove all the previous suggestions provided by the app.
- action
- Int32
Desired action to execute after removing the suggestion. One of
ACTION_REMOVE_SUGGESTION_*
Returns
Status code for the operation. One of the STATUS_NETWORK_SUGGESTIONS_*
values. Any matching suggestions are removed from the device and will not be considered for
further connection attempts.
- Attributes
Remarks
Remove some or all of the network suggestions that were previously provided by the app. If one of the suggestions being removed was used to establish connection to the current network, then the specified action will be executed.
See WifiNetworkSuggestion
for a detailed explanation of the parameters. See WifiNetworkSuggestion#equals(Object)
for the equivalence evaluation used.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.