Android.Net.Wifi.WifiManager.CreateWifiLock Method
Creates a new WifiLock.

Syntax

[Android.Runtime.Register("createWifiLock", "(ILjava/lang/String;)Landroid/net/wifi/WifiManager$WifiLock;", "GetCreateWifiLock_ILjava_lang_String_Handler")]
public virtual WifiManager.WifiLock CreateWifiLock ([Android.Runtime.GeneratedEnum] Android.Net.WifiMode lockType, string tag)

Parameters

lockType
the type of lock to create. See WifiManager.WIFI_MODE_FULL, WifiManager.WIFI_MODE_FULL_HIGH_PERF and WifiManager.WIFI_MODE_SCAN_ONLY for descriptions of the types of Wi-Fi locks.
tag
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

Documentation for this section has not yet been entered.

Remarks

Creates a new WifiLock.

[Android Documentation]

Requirements

Namespace: Android.Net.Wifi
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3