Added in API level 33

WifiSsid


class WifiSsid : Parcelable
kotlin.Any
   ↳ android.net.wifi.WifiSsid

Representation of a Wi-Fi Service Set Identifier (SSID).

Summary

Inherited constants
Public methods
Int

Implement the Parcelable interface

Boolean
equals(other: Any?)

static WifiSsid

Create a WifiSsid from the raw bytes.

ByteArray

Returns the raw byte array representing this SSID.

Int

String

Returns the string representation of the WifiSsid.

Unit
writeToParcel(dest: Parcel, flags: Int)

Implement the Parcelable interface

Properties
static Parcelable.Creator<WifiSsid!>

Implement the Parcelable interface

Public methods

describeContents

Added in API level 33
fun describeContents(): Int

Implement the Parcelable interface

Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

equals

Added in API level 33
fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

fromBytes

Added in API level 33
static fun fromBytes(bytes: ByteArray?): WifiSsid

Create a WifiSsid from the raw bytes. If the byte array is null, return an empty WifiSsid object which will return an empty byte array and empty text.

Parameters
bytes ByteArray?: This value may be null.

getBytes

Added in API level 33
fun getBytes(): ByteArray

Returns the raw byte array representing this SSID.

Return
ByteArray the SSID This value cannot be null.

hashCode

Added in API level 33
fun hashCode(): Int
Return
Int a hash code value for this object.

toString

Added in API level 33
fun toString(): String

Returns the string representation of the WifiSsid. If the SSID can be decoded as UTF-8, it will be returned in plain text surrounded by double quotation marks. Otherwise, it is returned as an unquoted string of hex digits. This format is consistent with WifiInfo.getSSID() and WifiConfiguration.SSID.

Return
String SSID as double-quoted plain text from UTF-8 or unquoted hex digits This value cannot be null.

writeToParcel

Added in API level 33
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Implement the Parcelable interface

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 33
static val CREATOR: Parcelable.Creator<WifiSsid!>

Implement the Parcelable interface