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 | |
| static WifiSsid |
Create a WifiSsid from the raw bytes. |
| ByteArray |
getBytes()Returns the raw byte array representing this SSID. |
| Int |
hashCode() |
| String |
toString()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
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
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
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
fun getBytes(): ByteArray
Returns the raw byte array representing this SSID.
| Return | |
|---|---|
ByteArray |
the SSID This value cannot be null. |
toString
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
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
static val CREATOR: Parcelable.Creator<WifiSsid!>
Implement the Parcelable interface