Builder


class Builder
kotlin.Any
   ↳ android.net.wifi.p2p.WifiP2pUsdBasedLocalServiceAdvertisementConfig.Builder

Builder for WifiP2pUsdBasedLocalServiceAdvertisementConfig.

Summary

Public constructors

Constructs a Builder with default values.

Public methods
WifiP2pUsdBasedLocalServiceAdvertisementConfig

Build WifiP2pUsdBasedLocalServiceAdvertisementConfig given the current requests made on the builder.

WifiP2pUsdBasedLocalServiceAdvertisementConfig.Builder
setFrequencyMhz(frequencyMhz: Int)

Specifies the frequency requested for advertising the service.

Public constructors

Builder

Builder()

Constructs a Builder with default values.

Public methods

build

fun build(): WifiP2pUsdBasedLocalServiceAdvertisementConfig

Build WifiP2pUsdBasedLocalServiceAdvertisementConfig given the current requests made on the builder.

Return
WifiP2pUsdBasedLocalServiceAdvertisementConfig WifiP2pUsdBasedLocalServiceAdvertisementConfig constructed based on builder method calls. This value cannot be null.

setFrequencyMhz

fun setFrequencyMhz(frequencyMhz: Int): WifiP2pUsdBasedLocalServiceAdvertisementConfig.Builder

Specifies the frequency requested for advertising the service.

Parameters
frequencyMhz Int: The requested frequency on which the service needs to be advertised. If not set, the default frequency is #USD_DEFAULT_DISCOVERY_CHANNEL_MHZ MHz. Value is 0 or greater
Return
WifiP2pUsdBasedLocalServiceAdvertisementConfig.Builder The builder to facilitate chaining builder.setXXX(..).setXXX(..). This value cannot be null.