WifiManager.CreateWifiLock 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
CreateWifiLock(String) |
Creates a new WifiLock. |
CreateWifiLock(WifiMode, String) |
Creates a new WifiLock. |
CreateWifiLock(String)
Creates a new WifiLock.
[Android.Runtime.Register("createWifiLock", "(Ljava/lang/String;)Landroid/net/wifi/WifiManager$WifiLock;", "GetCreateWifiLock_Ljava_lang_String_Handler")]
public virtual Android.Net.Wifi.WifiManager.WifiLock? CreateWifiLock (string? tag);
[<Android.Runtime.Register("createWifiLock", "(Ljava/lang/String;)Landroid/net/wifi/WifiManager$WifiLock;", "GetCreateWifiLock_Ljava_lang_String_Handler")>]
abstract member CreateWifiLock : string -> Android.Net.Wifi.WifiManager.WifiLock
override this.CreateWifiLock : string -> Android.Net.Wifi.WifiManager.WifiLock
Parameters
- tag
- String
a tag for the WifiLock to identify it in debugging messages. This string is never shown to the user under normal conditions, but should be descriptive enough to identify your application and the specific WifiLock within it, if it holds multiple WifiLocks.
Returns
- Attributes
Remarks
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
CreateWifiLock(WifiMode, String)
Creates a new WifiLock.
[Android.Runtime.Register("createWifiLock", "(ILjava/lang/String;)Landroid/net/wifi/WifiManager$WifiLock;", "GetCreateWifiLock_ILjava_lang_String_Handler")]
public virtual Android.Net.Wifi.WifiManager.WifiLock? CreateWifiLock (Android.Net.WifiMode lockType, string? tag);
[<Android.Runtime.Register("createWifiLock", "(ILjava/lang/String;)Landroid/net/wifi/WifiManager$WifiLock;", "GetCreateWifiLock_ILjava_lang_String_Handler")>]
abstract member CreateWifiLock : Android.Net.WifiMode * string -> Android.Net.Wifi.WifiManager.WifiLock
override this.CreateWifiLock : Android.Net.WifiMode * string -> Android.Net.Wifi.WifiManager.WifiLock
Parameters
- lockType
- WifiMode
the type of lock to create. See Android.Net.Wifi.WifiManager.WIFI_MODE_FULL, Android.Net.Wifi.WifiManager.WIFI_MODE_FULL_HIGH_PERF and Android.Net.Wifi.WifiManager.WIFI_MODE_SCAN_ONLY for descriptions of the types of Wi-Fi locks.
- tag
- String
a tag for the WifiLock to identify it in debugging messages. This string is never shown to the user under normal conditions, but should be descriptive enough to identify your application and the specific WifiLock within it, if it holds multiple WifiLocks.
Returns
- Attributes
Remarks
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.