BlockingOption.Builder
public
static
final
class
BlockingOption.Builder
extends Object
| java.lang.Object | |
| ↳ | android.net.wifi.BlockingOption.Builder |
Builder used to create BlockingOption objects.
Summary
Public constructors | |
|---|---|
Builder(int blockingTimeSec)
Create a |
|
Public methods | |
|---|---|
BlockingOption
|
build()
Create a BlockingOption object for use in
|
BlockingOption.Builder
|
setBlockingBssidOnly(boolean bssidOnly)
Set to configure blocking the whole network or a single BSSID. |
Inherited methods | |
|---|---|
Public constructors
Builder
public Builder (int blockingTimeSec)
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 |
| Throws | |
|---|---|
IllegalArgumentException |
if input is invalid. |
Public methods
build
public BlockingOption build ()
Create a BlockingOption object for use in
WifiManager.disallowCurrentSuggestedNetwork(BlockingOption).
| Returns | |
|---|---|
BlockingOption |
This value cannot be null. |
setBlockingBssidOnly
public BlockingOption.Builder setBlockingBssidOnly (boolean bssidOnly)
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 |
| Returns | |
|---|---|
BlockingOption.Builder |
Instance of Builder to enable chaining of the builder method.
This value cannot be null. |