Google is committed to advancing racial equity for Black communities. See how.

ScanResult.InformationElement

public static class ScanResult.InformationElement
extends Object

java.lang.Object
   ↳ android.net.wifi.ScanResult.InformationElement


information elements from beacon.

Summary

Public constructors

InformationElement(ScanResult.InformationElement rhs)

Public methods

ByteBuffer getBytes()

Get the specific content of the information element.

int getId()

The element ID of the information element.

int getIdExt()

The element ID Extension of the information element.

Inherited methods

Public constructors

InformationElement

Added in API level 30
public InformationElement (ScanResult.InformationElement rhs)

Parameters
rhs ScanResult.InformationElement: This value cannot be null.

Public methods

getBytes

Added in API level 30
public ByteBuffer getBytes ()

Get the specific content of the information element.

Returns
ByteBuffer This value cannot be null.

getId

Added in API level 30
public int getId ()

The element ID of the information element. Defined in the IEEE 802.11-2016 spec Table 9-77.

Returns
int

getIdExt

Added in API level 30
public int getIdExt ()

The element ID Extension of the information element. Defined in the IEEE 802.11-2016 spec Table 9-77.

Returns
int