Added in API level Baklava
Builder
class Builder
kotlin.Any | |
↳ | android.net.wifi.BlockingOption.Builder |
Builder used to create BlockingOption
objects.
Summary
Public constructors | |
---|---|
Create a |
Public methods | |
---|---|
BlockingOption |
build() Create a BlockingOption object for use in |
BlockingOption.Builder |
setBlockingBssidOnly(bssidOnly: Boolean) Set to configure blocking the whole network or a single BSSID. |
Public constructors
Builder
Added in API level Baklava
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
Added in API level Baklava
fun build(): BlockingOption
Create a BlockingOption object for use in WifiManager.disallowCurrentSuggestedNetwork(BlockingOption)
.
Return | |
---|---|
BlockingOption |
This value cannot be null . |
setBlockingBssidOnly
Added in API level Baklava
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 . |