Added in API level 33

WifiAwareChannelInfo

class WifiAwareChannelInfo : Parcelable
kotlin.Any
   ↳ android.net.wifi.aware.WifiAwareChannelInfo

Wi-Fi Aware data-path channel information. The information can be extracted from the WifiAwareNetworkInfo using WifiAwareNetworkInfo#getChannelInfoList() ()}. Wi-Fi Aware data-path channel information includes the channel frequency, bandwidth and num of the spatial streams.

Summary

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

Int

Get the channel bandwidth used by the Aware data path

Int

Get the channel frequency in MHZ used by the Aware data path

Int

Get the number of the spatial streams used by the Aware data path

Int

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<WifiAwareChannelInfo!>

Public methods

describeContents

Added in API level 33
fun describeContents(): Int
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.

getChannelFrequencyMhz

Added in API level 33
fun getChannelFrequencyMhz(): Int

Get the channel frequency in MHZ used by the Aware data path

Return
Int An integer represent the frequency of the channel in MHZ. Value is 0 or greater

getSpatialStreamCount

Added in API level 33
fun getSpatialStreamCount(): Int

Get the number of the spatial streams used by the Aware data path

Return
Int An integer represent number of the spatial streams are using in this channel. Value is 0 or greater

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
Return
String a string representation of the object.

writeToParcel

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

Flatten this object in to a Parcel.

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<WifiAwareChannelInfo!>