BluetoothLeDeviceFilter.Builder.SetRenameFromBytes 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.
Rename the devices shown in the list, using specific bytes from the raw advertisement data (ScanRecord.getBytes) in hexadecimal format, as well as a custom prefix/suffix around them Note that the prefix length is limited to BluetoothLeDeviceFilter.getRenamePrefixLengthLimit() characters to ensure that there's enough space to display the byte data The range of bytes to be displayed cannot be empty
[Android.Runtime.Register("setRenameFromBytes", "(Ljava/lang/String;Ljava/lang/String;IILjava/nio/ByteOrder;)Landroid/companion/BluetoothLeDeviceFilter$Builder;", "", ApiSince=26)]
public Android.Companion.BluetoothLeDeviceFilter.Builder SetRenameFromBytes(string prefix, string suffix, int bytesFrom, int bytesLength, Java.Nio.ByteOrder? byteOrder);
[<Android.Runtime.Register("setRenameFromBytes", "(Ljava/lang/String;Ljava/lang/String;IILjava/nio/ByteOrder;)Landroid/companion/BluetoothLeDeviceFilter$Builder;", "", ApiSince=26)>]
member this.SetRenameFromBytes : string * string * int * int * Java.Nio.ByteOrder -> Android.Companion.BluetoothLeDeviceFilter.Builder
Parameters
- prefix
- String
to be displayed before the byte data. This value cannot be null.
- suffix
- String
to be displayed after the byte data. This value cannot be null.
- bytesFrom
- Int32
the start byte index to be displayed (inclusive)
- bytesLength
- Int32
the number of bytes to be displayed from the given index
- byteOrder
- ByteOrder
whether the given range of bytes is big endian (will be displayed in same order) or little endian (will be flipped before displaying)
Returns
self for chaining. This value cannot be null.
- Attributes
Remarks
Rename the devices shown in the list, using specific bytes from the raw advertisement data (ScanRecord.getBytes) in hexadecimal format, as well as a custom prefix/suffix around them Note that the prefix length is limited to BluetoothLeDeviceFilter.getRenamePrefixLengthLimit() characters to ensure that there's enough space to display the byte data The range of bytes to be displayed cannot be empty
Android reference for android.companion.BluetoothLeDeviceFilter.Builder.setRenameFromBytes.
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.