WifiManager.DisallowCurrentSuggestedNetwork(BlockingOption) 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.
When the device is connected to a network suggested by calling app
#addNetworkSuggestions(List)
, this API provide a way to avoid the current connection
without #removeNetworkSuggestions(List)
.
[Android.Runtime.Register("disallowCurrentSuggestedNetwork", "(Landroid/net/wifi/BlockingOption;)V", "GetDisallowCurrentSuggestedNetwork_Landroid_net_wifi_BlockingOption_Handler", ApiSince=36)]
[Android.Runtime.RequiresPermission("android.permission.CHANGE_WIFI_STATE")]
public virtual void DisallowCurrentSuggestedNetwork(Android.Net.Wifi.BlockingOption blockingOption);
[<Android.Runtime.Register("disallowCurrentSuggestedNetwork", "(Landroid/net/wifi/BlockingOption;)V", "GetDisallowCurrentSuggestedNetwork_Landroid_net_wifi_BlockingOption_Handler", ApiSince=36)>]
[<Android.Runtime.RequiresPermission("android.permission.CHANGE_WIFI_STATE")>]
abstract member DisallowCurrentSuggestedNetwork : Android.Net.Wifi.BlockingOption -> unit
override this.DisallowCurrentSuggestedNetwork : Android.Net.Wifi.BlockingOption -> unit
Parameters
- blockingOption
- BlockingOption
Option to change for the network blocking BlockingOption
- Attributes
Remarks
When the device is connected to a network suggested by calling app #addNetworkSuggestions(List)
, this API provide a way to avoid the current connection without #removeNetworkSuggestions(List)
. The disallowed network will be disconnected or roam to other networks. App can only use this API to control the current connected network which was suggested by this app.
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.