Language

WifiDeviceFilter.Builder.SetNamePattern(Pattern) Method

Definition

If set, only devices whose name matches the given regular expression are shown.

[Android.Runtime.Register("setNamePattern", "(Ljava/util/regex/Pattern;)Landroid/companion/WifiDeviceFilter$Builder;", "", ApiSince=26)]
public Android.Companion.WifiDeviceFilter.Builder SetNamePattern(Java.Util.Regex.Pattern? value);
[<Android.Runtime.Register("setNamePattern", "(Ljava/util/regex/Pattern;)Landroid/companion/WifiDeviceFilter$Builder;", "", ApiSince=26)>]
member this.SetNamePattern : Java.Util.Regex.Pattern -> Android.Companion.WifiDeviceFilter.Builder

Parameters

value
Pattern

The regular expression that a device name must match. This value may be null.

Returns

This builder, with the name pattern assigned.

Attributes

Remarks

If set, only devices whose name matches the given regular expression are shown.

Android reference for android.companion.WifiDeviceFilter.Builder.setNamePattern.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to