Added in API level Baklava
Builder
class Builder
kotlin.Any | |
↳ | android.net.wifi.p2p.WifiP2pUsdBasedLocalServiceAdvertisementConfig.Builder |
Builder for WifiP2pUsdBasedLocalServiceAdvertisementConfig
.
Summary
Public constructors | |
---|---|
Builder() Constructs a Builder with default values. |
Public methods | |
---|---|
WifiP2pUsdBasedLocalServiceAdvertisementConfig |
build() Build |
WifiP2pUsdBasedLocalServiceAdvertisementConfig.Builder |
setFrequencyMhz(frequencyMhz: Int) Specifies the frequency requested for advertising the service. |
Public constructors
Public methods
build
Added in API level Baklava
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
Added in API level Baklava
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 . |