Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
    
    
  
  
    
    
    
    Builder
    class Builder
    
    Builder for BluetoothLeDeviceFilter
    Summary
    
    
    Public constructors
    
    Public methods
    
    
    
    
      setRenameFromBytes
      
      fun setRenameFromBytes(
    prefix: String, 
    suffix: String, 
    bytesFrom: Int, 
    bytesLength: Int, 
    byteOrder: ByteOrder!
): BluetoothLeDeviceFilter.Builder
      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 getRenamePrefixLengthLimit characters to ensure that there's enough space to display the byte data The range of bytes to be displayed cannot be empty
      
        
          
            | 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 | Int: the start byte index to be displayed (inclusive) | 
          
            | bytesLength | Int: 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) | 
        
      
      
     
    
      setRenameFromName
      
      fun setRenameFromName(
    prefix: String, 
    suffix: String, 
    nameFrom: Int, 
    nameLength: Int
): BluetoothLeDeviceFilter.Builder
      Rename the devices shown in the list, using specific characters from the advertised name, as well as a custom prefix/suffix around them Note that the prefix length is limited to getRenamePrefixLengthLimit characters to ensure that there's enough space to display the byte data The range of name characters to be displayed cannot be empty
      
        
          
            | 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. | 
          
            | nameFrom | Int: the start name character index to be displayed (inclusive) | 
          
            | nameLength | Int: the number of characters to be displayed from the given index | 
        
      
      
     
    
  
  
  
    
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]