AssociationRequest.Builder.SetSingleDevice(Boolean) 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.
Whether only a single device should match the provided filter.
[Android.Runtime.Register("setSingleDevice", "(Z)Landroid/companion/AssociationRequest$Builder;", "", ApiSince=26)]
public Android.Companion.AssociationRequest.Builder SetSingleDevice(bool singleDevice);
[<Android.Runtime.Register("setSingleDevice", "(Z)Landroid/companion/AssociationRequest$Builder;", "", ApiSince=26)>]
member this.SetSingleDevice : bool -> Android.Companion.AssociationRequest.Builder
Parameters
- singleDevice
- Boolean
if true, scanning for a device will stop as soon as at least one fitting device is found
Returns
- Attributes
Remarks
Whether only a single device should match the provided filter. When scanning for a single device with a specific BluetoothDeviceFilter mac address, bonded devices are also searched among. This allows to obtain the necessary app privileges even if the device is already paired.
Android reference for android.companion.AssociationRequest.Builder.setSingleDevice.
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.