BluetoothDeviceFilter.Builder.SetNamePattern(Pattern) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the regular expression that a device name must match.
[Android.Runtime.Register("setNamePattern", "(Ljava/util/regex/Pattern;)Landroid/companion/BluetoothDeviceFilter$Builder;", "", ApiSince=26)]
public Android.Companion.BluetoothDeviceFilter.Builder? SetNamePattern(Java.Util.Regex.Pattern? regex);
[<Android.Runtime.Register("setNamePattern", "(Ljava/util/regex/Pattern;)Landroid/companion/BluetoothDeviceFilter$Builder;", "", ApiSince=26)>]
member this.SetNamePattern : Java.Util.Regex.Pattern -> Android.Companion.BluetoothDeviceFilter.Builder
Parameters
- regex
- Pattern
if set, only devices with name matching the given regular expression will be shown. This value may be null.
Returns
This builder, with the name pattern assigned.
- Attributes
Remarks
Android reference for android.companion.BluetoothDeviceFilter.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.