WifiDeviceFilter.Builder

public static final class WifiDeviceFilter.Builder
extends Object

java.lang.Object
   ↳ android.companion.WifiDeviceFilter.Builder


Builder for WifiDeviceFilter

Summary

Public constructors

WifiDeviceFilter.Builder()

Public methods

WifiDeviceFilter build()

Builds the instance Once this method is called, this builder should no longer be used.

WifiDeviceFilter.Builder setNamePattern(Pattern regex)

Protected methods

void checkNotUsed()
void markUsed()

Inherited methods

Public constructors

WifiDeviceFilter.Builder

added in API level 26
WifiDeviceFilter.Builder ()

Public methods

build

added in API level 26
WifiDeviceFilter build ()

Builds the instance Once this method is called, this builder should no longer be used. Any subsequent calls to a setter or build() will throw an exception

Returns
WifiDeviceFilter

This value will never be null.

setNamePattern

added in API level 26
WifiDeviceFilter.Builder setNamePattern (Pattern regex)

Parameters
regex Pattern: if set, only devices with name matching the given regular expression will be shown

This value may be null.

Returns
WifiDeviceFilter.Builder self for chaining

Protected methods

checkNotUsed

void checkNotUsed ()

markUsed

void markUsed ()