WifiP2pConnectionInfo


class WifiP2pConnectionInfo : Parcelable
kotlin.Any
   ↳ android.net.wifi.p2p.WifiP2pConnectionInfo

A class representing the connection capabilities of a Wi-Fi P2P link.

This class provides information about the physical layer (PHY) of the connection, including the Wi-Fi standard in use (e.g. 802.11ax), the channel width, and the number of transmit and receive spatial streams (NSS). This data can be used to understand the performance characteristics of the P2P connection.

An instance of this class can be obtained from WifiP2pGroup or WifiP2pDevice.

Summary

Constants
static Int

Indicates that the value of a field is not specified.

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

Int

Gets the channel width of the current P2P connection.

Int

Gets the maximum number of receive spatial streams (NSS) for the current P2P connection.

Int

Gets the maximum number of transmit spatial streams (NSS) for the current P2P connection.

Int

Gets the Wi-Fi standard of the current P2P connection.

Int

String

Unit
writeToParcel(parcel: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<WifiP2pConnectionInfo!>

Constants

UNSPECIFIED

static val UNSPECIFIED: Int

Indicates that the value of a field is not specified.

Value: 0

Public methods

describeContents

fun describeContents(): Int

equals

fun equals(other: Any?): Boolean

getRxNss

fun getRxNss(): Int

Gets the maximum number of receive spatial streams (NSS) for the current P2P connection.

Return
Int The maximum number of spatial streams used for receiving data, or UNSPECIFIED if the value is not available.
Value is between 0 and 4 inclusive

getTxNss

fun getTxNss(): Int

Gets the maximum number of transmit spatial streams (NSS) for the current P2P connection.

Return
Int The maximum number of spatial streams used for transmitting data, or UNSPECIFIED if the value is not available.
Value is between 0 and 4 inclusive

hashCode

fun hashCode(): Int

toString

fun toString(): String

writeToParcel

fun writeToParcel(
    parcel: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest The Parcel in which the object should be written.
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 the following:
parcel Parcel: This value cannot be null.

Properties

CREATOR

static val CREATOR: Parcelable.Creator<WifiP2pConnectionInfo!>