# Print output for @column tags ?> WifiInfo.Builder - Android SDK | Android Developers

Most visited

Recently visited

WifiInfo.Builder

public static final class WifiInfo.Builder
extends Object

java.lang.Object
   ↳ android.net.wifi.WifiInfo.Builder


Builder for WifiInfo

Summary

Public constructors

Builder()

Public methods

WifiInfo build()

Build a WifiInfo object.

WifiInfo.Builder setBssid(String bssid)

Set the BSSID.

WifiInfo.Builder setNetworkId(int networkId)

Set the network ID.

WifiInfo.Builder setRssi(int rssi)

Set the RSSI, in dBm.

WifiInfo.Builder setSsid(byte[] ssid)

Set the SSID, in the form of a raw byte array.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public WifiInfo build ()

Build a WifiInfo object.

Returns
WifiInfo This value cannot be null.

setBssid

public WifiInfo.Builder setBssid (String bssid)

Set the BSSID.

Parameters
bssid String: This value cannot be null.

Returns
WifiInfo.Builder This value cannot be null.

See also:

setNetworkId

public WifiInfo.Builder setNetworkId (int networkId)

Set the network ID.

Parameters
networkId int

Returns
WifiInfo.Builder This value cannot be null.

See also:

setRssi

public WifiInfo.Builder setRssi (int rssi)

Set the RSSI, in dBm.

Parameters
rssi int

Returns
WifiInfo.Builder This value cannot be null.

See also:

setSsid

public WifiInfo.Builder setSsid (byte[] ssid)

Set the SSID, in the form of a raw byte array.

Parameters
ssid byte: This value cannot be null.

Returns
WifiInfo.Builder This value cannot be null.

See also: