Freigeben über


WifiManager.SetPerSsidRoamingMode(WifiSsid, Int32) Method

Definition

This API allows a privileged application to set roaming mode per SSID.

[Android.Runtime.Register("setPerSsidRoamingMode", "(Landroid/net/wifi/WifiSsid;I)V", "GetSetPerSsidRoamingMode_Landroid_net_wifi_WifiSsid_IHandler", ApiSince=35)]
public virtual void SetPerSsidRoamingMode (Android.Net.Wifi.WifiSsid ssid, int roamingMode);
[<Android.Runtime.Register("setPerSsidRoamingMode", "(Landroid/net/wifi/WifiSsid;I)V", "GetSetPerSsidRoamingMode_Landroid_net_wifi_WifiSsid_IHandler", ApiSince=35)>]
abstract member SetPerSsidRoamingMode : Android.Net.Wifi.WifiSsid * int -> unit
override this.SetPerSsidRoamingMode : Android.Net.Wifi.WifiSsid * int -> unit

Parameters

ssid
WifiSsid

SSID to be mapped to apply roaming policy

roamingMode
Int32

refer RoamingMode for supported modes.

Attributes

Remarks

This API allows a privileged application to set roaming mode per SSID.

Available for DO/COPE apps. Other apps require android.Manifest.permission#NETWORK_SETTINGS or android.Manifest.permission#MANAGE_WIFI_NETWORK_SELECTION permission.

Java documentation for android.net.wifi.WifiManager.setPerSsidRoamingMode(android.net.wifi.WifiSsid, int).

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