Compartir a través de


WifiManager.CreateWifiLock Method

Definition

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

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