Share via


WifiInfo.SSID Property

Definition

Returns the service set identifier (SSID) of the current 802.

public virtual string? SSID { [Android.Runtime.Register("getSSID", "()Ljava/lang/String;", "GetGetSSIDHandler")] get; }
[<get: Android.Runtime.Register("getSSID", "()Ljava/lang/String;", "GetGetSSIDHandler")>]
member this.SSID : string

Property Value

the SSID.

Attributes

Remarks

Returns the service set identifier (SSID) of the current 802.11 network.

If the SSID can be decoded as UTF-8, it will be returned surrounded by double quotation marks. Otherwise, it is returned as a string of hex digits. The SSID may be WifiManager#UNKNOWN_SSID, if there is no network currently connected or if the caller has insufficient permissions to access the SSID.

Prior to android.os.Build.VERSION_CODES#JELLY_BEAN_MR1, this method always returned the SSID with no quotes around it.

Java documentation for android.net.wifi.WifiInfo.getSSID().

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