ScanFilter.Builder.SetManufacturerData 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.
Overloads
| Name | Description |
|---|---|
| SetManufacturerData(Int32, Byte[], Byte[]) |
Set filter on partial manufacture data. |
| SetManufacturerData(Int32, Byte[]) |
Set filter on manufacturerData. |
SetManufacturerData(Int32, Byte[], Byte[])
Set filter on partial manufacture data.
[Android.Runtime.Register("setManufacturerData", "(I[B[B)Landroid/bluetooth/le/ScanFilter$Builder;", "")]
public Android.Bluetooth.LE.ScanFilter.Builder SetManufacturerData(int manufacturerId, byte[] manufacturerData, byte[] manufacturerDataMask);
[<Android.Runtime.Register("setManufacturerData", "(I[B[B)Landroid/bluetooth/le/ScanFilter$Builder;", "")>]
member this.SetManufacturerData : int * byte[] * byte[] -> Android.Bluetooth.LE.ScanFilter.Builder
Parameters
- manufacturerId
- Int32
The manufacturer identifier for the data to match.
- manufacturerData
- Byte[]
The manufacturer data bytes to compare.
- manufacturerDataMask
- Byte[]
The bit mask for the comparison, or null to compare all bits. A supplied mask requires data of the same length.
Returns
This builder instance.
- Attributes
Remarks
Set filter on partial manufacture data. For any bit in the mask, set it to 1 if it needs to match the one in manufacturer data, otherwise set it to 0.
The manufacturerDataMask must have the same length of manufacturerData.
Android reference for android.bluetooth.le.ScanFilter.Builder.setManufacturerData.
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
SetManufacturerData(Int32, Byte[])
Set filter on manufacturerData.
[Android.Runtime.Register("setManufacturerData", "(I[B)Landroid/bluetooth/le/ScanFilter$Builder;", "")]
public Android.Bluetooth.LE.ScanFilter.Builder SetManufacturerData(int manufacturerId, byte[] manufacturerData);
[<Android.Runtime.Register("setManufacturerData", "(I[B)Landroid/bluetooth/le/ScanFilter$Builder;", "")>]
member this.SetManufacturerData : int * byte[] -> Android.Bluetooth.LE.ScanFilter.Builder
Parameters
- manufacturerId
- Int32
The manufacturer identifier for the data to match.
- manufacturerData
- Byte[]
The manufacturer data byte pattern to store in this filter.
Returns
This builder instance.
- Attributes
Remarks
Set filter on manufacturerData. A negative manufacturerId is considered an invalid ID.
Android reference for android.bluetooth.le.ScanFilter.Builder.setManufacturerData.
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.