Builder


class Builder
kotlin.Any
   ↳ android.net.wifi.BlockingOption.Builder

Builder used to create BlockingOption objects.

Summary

Public constructors
Builder(blockingTimeSec: Int)

Create a Builder with blocking time for the network

Public methods
BlockingOption

Create a BlockingOption object for use in WifiManager.disallowCurrentSuggestedNetwork(BlockingOption).

BlockingOption.Builder

Set to configure blocking the whole network or a single BSSID.

Public constructors

Builder

Builder(blockingTimeSec: Int)

Create a Builder with blocking time for the network

Parameters
blockingTimeSec Int: Time period to block the network in seconds Value is between 1 and 86400 inclusive
Exceptions
java.lang.IllegalArgumentException if input is invalid.

Public methods

build

fun build(): BlockingOption

Create a BlockingOption object for use in WifiManager.disallowCurrentSuggestedNetwork(BlockingOption).

Return
BlockingOption This value cannot be null.

setBlockingBssidOnly

fun setBlockingBssidOnly(bssidOnly: Boolean): BlockingOption.Builder

Set to configure blocking the whole network or a single BSSID. By default, the whole network will be blocked.

Parameters
bssidOnly Boolean: True for a single BSSID, otherwise the whole network will be blocked
Return
BlockingOption.Builder Instance of Builder to enable chaining of the builder method. This value cannot be null.