# ScanRecord

Added in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Constants](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#constants)\|[Methods](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#inhmethods)  

# ScanRecord

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/bluetooth/le/ScanRecord "View this page in Kotlin")\|Java

`
public

final

class
ScanRecord
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|---------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.bluetooth.le.ScanRecord |

<br />

*** ** * ** ***

Represents a scan record from Bluetooth LE scan.

## Summary

|                                                                                                                                               ### Constants                                                                                                                                               ||
|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [DATA_TYPE_3D_INFORMATION_DATA](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_3D_INFORMATION_DATA) Data type is 3D Information Data, see the Bluetooth Generic Access Profile for more details.                                                                |
| `int` | [DATA_TYPE_ADVERTISING_INTERVAL](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_ADVERTISING_INTERVAL) Data type is Advertising Interval, see the Bluetooth Generic Access Profile for more details.                                                             |
| `int` | [DATA_TYPE_ADVERTISING_INTERVAL_LONG](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_ADVERTISING_INTERVAL_LONG) Data type is Advertising Interval - long, see the Bluetooth Generic Access Profile for more details.                                            |
| `int` | [DATA_TYPE_APPEARANCE](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_APPEARANCE) Data type is Appearance, see the Bluetooth Generic Access Profile for more details.                                                                                           |
| `int` | [DATA_TYPE_BIG_INFO](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_BIG_INFO) Data type is BIGInfo, see the Bluetooth Generic Access Profile for more details.                                                                                                  |
| `int` | [DATA_TYPE_BROADCAST_CODE](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_BROADCAST_CODE) Data type is Broadcast_Code, see the Bluetooth Generic Access Profile for more details.                                                                               |
| `int` | [DATA_TYPE_CHANNEL_MAP_UPDATE_INDICATION](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_CHANNEL_MAP_UPDATE_INDICATION) Data type is Channel Map Update Indication, see the Bluetooth Generic Access Profile for more details.                                  |
| `int` | [DATA_TYPE_CLASS_OF_DEVICE](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_CLASS_OF_DEVICE) Data type is Class of Device, see the Bluetooth Generic Access Profile for more details.                                                                            |
| `int` | [DATA_TYPE_DEVICE_ID](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_DEVICE_ID) Data type is Device ID, see the Bluetooth Generic Access Profile for more details.                                                                                              |
| `int` | [DATA_TYPE_FLAGS](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_FLAGS) Data type is Flags, see the Bluetooth Generic Access Profile for more details.                                                                                                          |
| `int` | [DATA_TYPE_INDOOR_POSITIONING](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_INDOOR_POSITIONING) Data type is Indoor Positioning, see the Bluetooth Generic Access Profile for more details.                                                                   |
| `int` | [DATA_TYPE_LE_BLUETOOTH_DEVICE_ADDRESS](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_LE_BLUETOOTH_DEVICE_ADDRESS) Data type is LE Bluetooth Device Address, see the Bluetooth Generic Access Profile for more details.                                        |
| `int` | [DATA_TYPE_LE_ROLE](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_LE_ROLE) Data type is LE Role, see the Bluetooth Generic Access Profile for more details.                                                                                                    |
| `int` | [DATA_TYPE_LE_SECURE_CONNECTIONS_CONFIRMATION_VALUE](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_LE_SECURE_CONNECTIONS_CONFIRMATION_VALUE) Data type is LE Secure Connections Confirmation Value, see the Bluetooth Generic Access Profile for more details. |
| `int` | [DATA_TYPE_LE_SECURE_CONNECTIONS_RANDOM_VALUE](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_LE_SECURE_CONNECTIONS_RANDOM_VALUE) Data type is LE Secure Connections Random Value, see the Bluetooth Generic Access Profile for more details.                   |
| `int` | [DATA_TYPE_LE_SUPPORTED_FEATURES](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_LE_SUPPORTED_FEATURES) Data type is LE Supported Features, see the Bluetooth Generic Access Profile for more details.                                                          |
| `int` | [DATA_TYPE_LOCAL_NAME_COMPLETE](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_LOCAL_NAME_COMPLETE) Data type is Complete Local Name, see the Bluetooth Generic Access Profile for more details.                                                                |
| `int` | [DATA_TYPE_LOCAL_NAME_SHORT](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_LOCAL_NAME_SHORT) Data type is Shortened Local Name, see the Bluetooth Generic Access Profile for more details.                                                                     |
| `int` | [DATA_TYPE_MANUFACTURER_SPECIFIC_DATA](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_MANUFACTURER_SPECIFIC_DATA) Data type is Manufacturer Specific Data, see the Bluetooth Generic Access Profile for more details.                                           |
| `int` | [DATA_TYPE_MESH_BEACON](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_MESH_BEACON) Data type is Mesh Beacon, see the Bluetooth Generic Access Profile for more details.                                                                                        |
| `int` | [DATA_TYPE_MESH_MESSAGE](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_MESH_MESSAGE) Data type is Mesh Message, see the Bluetooth Generic Access Profile for more details.                                                                                     |
| `int` | [DATA_TYPE_NONE](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_NONE) Data type is not set for the filter.                                                                                                                                                      |
| `int` | [DATA_TYPE_PB_ADV](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_PB_ADV) Data type is PB-ADV, see the Bluetooth Generic Access Profile for more details.                                                                                                       |
| `int` | [DATA_TYPE_PUBLIC_TARGET_ADDRESS](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_PUBLIC_TARGET_ADDRESS) Data type is Public Target Address, see the Bluetooth Generic Access Profile for more details.                                                          |
| `int` | [DATA_TYPE_RANDOM_TARGET_ADDRESS](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_RANDOM_TARGET_ADDRESS) Data type is Random Target Address, see the Bluetooth Generic Access Profile for more details.                                                          |
| `int` | [DATA_TYPE_RESOLVABLE_SET_IDENTIFIER](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_RESOLVABLE_SET_IDENTIFIER) Data type is Resolvable Set Identifier, see the Bluetooth Generic Access Profile for more details.                                              |
| `int` | [DATA_TYPE_SECURITY_MANAGER_OUT_OF_BAND_FLAGS](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_SECURITY_MANAGER_OUT_OF_BAND_FLAGS) Data type is Security Manager Out of Band Flags, see the Bluetooth Generic Access Profile for more details.                   |
| `int` | [DATA_TYPE_SERVICE_DATA_128_BIT](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_SERVICE_DATA_128_BIT) Data type is Service Data - 128-bit UUID, see the Bluetooth Generic Access Profile for more details.                                                      |
| `int` | [DATA_TYPE_SERVICE_DATA_16_BIT](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_SERVICE_DATA_16_BIT) Data type is Service Data - 16-bit UUID, see the Bluetooth Generic Access Profile for more details.                                                         |
| `int` | [DATA_TYPE_SERVICE_DATA_32_BIT](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_SERVICE_DATA_32_BIT) Data type is Service Data - 32-bit UUID, see the Bluetooth Generic Access Profile for more details.                                                         |
| `int` | [DATA_TYPE_SERVICE_SOLICITATION_UUIDS_128_BIT](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_SERVICE_SOLICITATION_UUIDS_128_BIT) Data type is List of 128-bit Service Solicitation UUIDs, see the Bluetooth Generic Access Profile for more details.           |
| `int` | [DATA_TYPE_SERVICE_SOLICITATION_UUIDS_16_BIT](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_SERVICE_SOLICITATION_UUIDS_16_BIT) Data type is List of 16-bit Service Solicitation UUIDs, see the Bluetooth Generic Access Profile for more details.              |
| `int` | [DATA_TYPE_SERVICE_SOLICITATION_UUIDS_32_BIT](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_SERVICE_SOLICITATION_UUIDS_32_BIT) Data type is List of 32-bit Service Solicitation UUIDs, see the Bluetooth Generic Access Profile for more details.              |
| `int` | [DATA_TYPE_SERVICE_UUIDS_128_BIT_COMPLETE](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_SERVICE_UUIDS_128_BIT_COMPLETE) Data type is Complete List of 128-bit Service Class UUIDs, see the Bluetooth Generic Access Profile for more details.                 |
| `int` | [DATA_TYPE_SERVICE_UUIDS_128_BIT_PARTIAL](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_SERVICE_UUIDS_128_BIT_PARTIAL) Data type is Incomplete List of 128-bit Service Class UUIDs, see the Bluetooth Generic Access Profile for the details.                  |
| `int` | [DATA_TYPE_SERVICE_UUIDS_16_BIT_COMPLETE](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_SERVICE_UUIDS_16_BIT_COMPLETE) Data type is Complete List of 16-bit Service Class UUIDs, see the Bluetooth Generic Access Profile for more details.                    |
| `int` | [DATA_TYPE_SERVICE_UUIDS_16_BIT_PARTIAL](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_SERVICE_UUIDS_16_BIT_PARTIAL) Data type is Incomplete List of 16-bit Service Class UUIDs, see the Bluetooth Generic Access Profile for the details.                     |
| `int` | [DATA_TYPE_SERVICE_UUIDS_32_BIT_COMPLETE](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_SERVICE_UUIDS_32_BIT_COMPLETE) Data type is Complete List of 32-bit Service Class UUIDs, see the Bluetooth Generic Access Profile for more details.                    |
| `int` | [DATA_TYPE_SERVICE_UUIDS_32_BIT_PARTIAL](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_SERVICE_UUIDS_32_BIT_PARTIAL) Data type is Incomplete List of 32-bit Service Class UUIDs, see the Bluetooth Generic Access Profile for the details.                     |
| `int` | [DATA_TYPE_SIMPLE_PAIRING_HASH_C](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_SIMPLE_PAIRING_HASH_C) Data type is Simple Pairing Hash C, see the Bluetooth Generic Access Profile for more details.                                                          |
| `int` | [DATA_TYPE_SIMPLE_PAIRING_HASH_C_256](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_SIMPLE_PAIRING_HASH_C_256) Data type is Simple Pairing Hash C-256, see the Bluetooth Generic Access Profile for more details.                                              |
| `int` | [DATA_TYPE_SIMPLE_PAIRING_RANDOMIZER_R](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_SIMPLE_PAIRING_RANDOMIZER_R) Data type is Simple Pairing Randomizer R, see the Bluetooth Generic Access Profile for more details.                                        |
| `int` | [DATA_TYPE_SIMPLE_PAIRING_RANDOMIZER_R_256](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_SIMPLE_PAIRING_RANDOMIZER_R_256) Data type is Simple Pairing Randomizer R-256, see the Bluetooth Generic Access Profile for more details.                            |
| `int` | [DATA_TYPE_SLAVE_CONNECTION_INTERVAL_RANGE](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_SLAVE_CONNECTION_INTERVAL_RANGE) Data type is Slave Connection Interval Range, see the Bluetooth Generic Access Profile for more details.                            |
| `int` | [DATA_TYPE_TRANSPORT_DISCOVERY_DATA](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_TRANSPORT_DISCOVERY_DATA) Data type is Transport Discovery Data, see the Bluetooth Generic Access Profile for more details.                                                 |
| `int` | [DATA_TYPE_TX_POWER_LEVEL](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_TX_POWER_LEVEL) Data type is Tx Power Level, see the Bluetooth Generic Access Profile for more details.                                                                               |
| `int` | [DATA_TYPE_URI](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#DATA_TYPE_URI) Data type is URI, see the Bluetooth Generic Access Profile for more details.                                                                                                                |

|                                                                                                                                                                                                                          ### Public methods                                                                                                                                                                                                                          ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int`                                                                                                                                                   | ` `[getAdvertiseFlags](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#getAdvertiseFlags())`() ` Returns the advertising flags indicating the discoverable mode and capability of the device.                                                                                      |
| ` `[Map](https://developer.android.com/reference/java/util/Map)`<`[Integer](https://developer.android.com/reference/java/lang/Integer)`, byte[]>`        | ` `[getAdvertisingDataMap](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#getAdvertisingDataMap())`() ` Returns a map of advertising data type and its corresponding advertising data.                                                                                            |
| ` byte[]`                                                                                                                                                | ` `[getBytes](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#getBytes())`() ` Returns raw bytes of scan record.                                                                                                                                                                   |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                                                                    | ` `[getDeviceName](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#getDeviceName())`() ` Returns the local name of the BLE device.                                                                                                                                                 |
| ` `[SparseArray](https://developer.android.com/reference/android/util/SparseArray)`<byte[]>`                                                             | ` `[getManufacturerSpecificData](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#getManufacturerSpecificData())`() ` Returns a sparse array of manufacturer identifier and its corresponding manufacturer specific data.                                                           |
| ` byte[]`                                                                                                                                                | ` `[getManufacturerSpecificData](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#getManufacturerSpecificData(int))`(int manufacturerId) ` Returns the manufacturer specific data associated with the manufacturer id.                                                              |
| ` byte[]`                                                                                                                                                | ` `[getServiceData](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#getServiceData(android.os.ParcelUuid))`(`[ParcelUuid](https://developer.android.com/reference/android/os/ParcelUuid)` serviceDataUuid) ` Returns the service data byte array associated with the`serviceUuid`. |
| ` `[Map](https://developer.android.com/reference/java/util/Map)`<`[ParcelUuid](https://developer.android.com/reference/android/os/ParcelUuid)`, byte[]>` | ` `[getServiceData](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#getServiceData())`() ` Returns a map of service UUID and its corresponding service data.                                                                                                                       |
| ` `[List](https://developer.android.com/reference/java/util/List)`<`[ParcelUuid](https://developer.android.com/reference/android/os/ParcelUuid)`>`       | ` `[getServiceSolicitationUuids](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#getServiceSolicitationUuids())`() ` Returns a list of service solicitation UUIDs within the advertisement that are used to identify the Bluetooth GATT services.                                  |
| ` `[List](https://developer.android.com/reference/java/util/List)`<`[ParcelUuid](https://developer.android.com/reference/android/os/ParcelUuid)`>`       | ` `[getServiceUuids](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#getServiceUuids())`() ` Returns a list of service UUIDs within the advertisement that are used to identify the bluetooth GATT services.                                                                       |
| ` int`                                                                                                                                                   | ` `[getTxPowerLevel](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#getTxPowerLevel())`() ` Returns the transmission power level of the packet in dBm.                                                                                                                            |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                                                                    | ` `[toString](https://developer.android.com/reference/android/bluetooth/le/ScanRecord#toString())`() ` Returns a string representation of the object.                                                                                                                                                      |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Constants

### DATA_TYPE_3D_INFORMATION_DATA

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_3D_INFORMATION_DATA
```

Data type is 3D Information Data, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 61 (0x0000003d)  

### DATA_TYPE_ADVERTISING_INTERVAL

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_ADVERTISING_INTERVAL
```

Data type is Advertising Interval, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 26 (0x0000001a)  

### DATA_TYPE_ADVERTISING_INTERVAL_LONG

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_ADVERTISING_INTERVAL_LONG
```

Data type is Advertising Interval - long, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 47 (0x0000002f)  

### DATA_TYPE_APPEARANCE

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_APPEARANCE
```

Data type is Appearance, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 25 (0x00000019)  

### DATA_TYPE_BIG_INFO

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_BIG_INFO
```

Data type is BIGInfo, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 44 (0x0000002c)  

### DATA_TYPE_BROADCAST_CODE

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_BROADCAST_CODE
```

Data type is Broadcast_Code, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 45 (0x0000002d)  

### DATA_TYPE_CHANNEL_MAP_UPDATE_INDICATION

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_CHANNEL_MAP_UPDATE_INDICATION
```

Data type is Channel Map Update Indication, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 40 (0x00000028)  

### DATA_TYPE_CLASS_OF_DEVICE

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_CLASS_OF_DEVICE
```

Data type is Class of Device, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 13 (0x0000000d)  

### DATA_TYPE_DEVICE_ID

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_DEVICE_ID
```

Data type is Device ID, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 16 (0x00000010)  

### DATA_TYPE_FLAGS

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_FLAGS
```

Data type is Flags, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 1 (0x00000001)  

### DATA_TYPE_INDOOR_POSITIONING

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_INDOOR_POSITIONING
```

Data type is Indoor Positioning, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 37 (0x00000025)  

### DATA_TYPE_LE_BLUETOOTH_DEVICE_ADDRESS

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_LE_BLUETOOTH_DEVICE_ADDRESS
```

Data type is LE Bluetooth Device Address, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 27 (0x0000001b)  

### DATA_TYPE_LE_ROLE

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_LE_ROLE
```

Data type is LE Role, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 28 (0x0000001c)  

### DATA_TYPE_LE_SECURE_CONNECTIONS_CONFIRMATION_VALUE

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_LE_SECURE_CONNECTIONS_CONFIRMATION_VALUE
```

Data type is LE Secure Connections Confirmation Value, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 34 (0x00000022)  

### DATA_TYPE_LE_SECURE_CONNECTIONS_RANDOM_VALUE

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_LE_SECURE_CONNECTIONS_RANDOM_VALUE
```

Data type is LE Secure Connections Random Value, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 35 (0x00000023)  

### DATA_TYPE_LE_SUPPORTED_FEATURES

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_LE_SUPPORTED_FEATURES
```

Data type is LE Supported Features, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 39 (0x00000027)  

### DATA_TYPE_LOCAL_NAME_COMPLETE

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_LOCAL_NAME_COMPLETE
```

Data type is Complete Local Name, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 9 (0x00000009)  

### DATA_TYPE_LOCAL_NAME_SHORT

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_LOCAL_NAME_SHORT
```

Data type is Shortened Local Name, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 8 (0x00000008)  

### DATA_TYPE_MANUFACTURER_SPECIFIC_DATA

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_MANUFACTURER_SPECIFIC_DATA
```

Data type is Manufacturer Specific Data, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 255 (0x000000ff)  

### DATA_TYPE_MESH_BEACON

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_MESH_BEACON
```

Data type is Mesh Beacon, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 43 (0x0000002b)  

### DATA_TYPE_MESH_MESSAGE

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_MESH_MESSAGE
```

Data type is Mesh Message, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 42 (0x0000002a)  

### DATA_TYPE_NONE

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_NONE
```

Data type is not set for the filter. Will not filter advertising data type.

<br />

Constant Value: -1 (0xffffffff)  

### DATA_TYPE_PB_ADV

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_PB_ADV
```

Data type is PB-ADV, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 41 (0x00000029)  

### DATA_TYPE_PUBLIC_TARGET_ADDRESS

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_PUBLIC_TARGET_ADDRESS
```

Data type is Public Target Address, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 23 (0x00000017)  

### DATA_TYPE_RANDOM_TARGET_ADDRESS

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_RANDOM_TARGET_ADDRESS
```

Data type is Random Target Address, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 24 (0x00000018)  

### DATA_TYPE_RESOLVABLE_SET_IDENTIFIER

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_RESOLVABLE_SET_IDENTIFIER
```

Data type is Resolvable Set Identifier, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 46 (0x0000002e)  

### DATA_TYPE_SECURITY_MANAGER_OUT_OF_BAND_FLAGS

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_SECURITY_MANAGER_OUT_OF_BAND_FLAGS
```

Data type is Security Manager Out of Band Flags, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 17 (0x00000011)  

### DATA_TYPE_SERVICE_DATA_128_BIT

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_SERVICE_DATA_128_BIT
```

Data type is Service Data - 128-bit UUID, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 33 (0x00000021)  

### DATA_TYPE_SERVICE_DATA_16_BIT

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_SERVICE_DATA_16_BIT
```

Data type is Service Data - 16-bit UUID, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 22 (0x00000016)  

### DATA_TYPE_SERVICE_DATA_32_BIT

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_SERVICE_DATA_32_BIT
```

Data type is Service Data - 32-bit UUID, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 32 (0x00000020)  

### DATA_TYPE_SERVICE_SOLICITATION_UUIDS_128_BIT

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_SERVICE_SOLICITATION_UUIDS_128_BIT
```

Data type is List of 128-bit Service Solicitation UUIDs, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 21 (0x00000015)  

### DATA_TYPE_SERVICE_SOLICITATION_UUIDS_16_BIT

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_SERVICE_SOLICITATION_UUIDS_16_BIT
```

Data type is List of 16-bit Service Solicitation UUIDs, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 20 (0x00000014)  

### DATA_TYPE_SERVICE_SOLICITATION_UUIDS_32_BIT

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_SERVICE_SOLICITATION_UUIDS_32_BIT
```

Data type is List of 32-bit Service Solicitation UUIDs, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 31 (0x0000001f)  

### DATA_TYPE_SERVICE_UUIDS_128_BIT_COMPLETE

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_SERVICE_UUIDS_128_BIT_COMPLETE
```

Data type is Complete List of 128-bit Service Class UUIDs, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 7 (0x00000007)  

### DATA_TYPE_SERVICE_UUIDS_128_BIT_PARTIAL

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_SERVICE_UUIDS_128_BIT_PARTIAL
```

Data type is Incomplete List of 128-bit Service Class UUIDs, see the Bluetooth Generic Access Profile for the details.

<br />

Constant Value: 6 (0x00000006)  

### DATA_TYPE_SERVICE_UUIDS_16_BIT_COMPLETE

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_SERVICE_UUIDS_16_BIT_COMPLETE
```

Data type is Complete List of 16-bit Service Class UUIDs, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 3 (0x00000003)  

### DATA_TYPE_SERVICE_UUIDS_16_BIT_PARTIAL

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_SERVICE_UUIDS_16_BIT_PARTIAL
```

Data type is Incomplete List of 16-bit Service Class UUIDs, see the Bluetooth Generic Access Profile for the details.

<br />

Constant Value: 2 (0x00000002)  

### DATA_TYPE_SERVICE_UUIDS_32_BIT_COMPLETE

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_SERVICE_UUIDS_32_BIT_COMPLETE
```

Data type is Complete List of 32-bit Service Class UUIDs, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 5 (0x00000005)  

### DATA_TYPE_SERVICE_UUIDS_32_BIT_PARTIAL

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_SERVICE_UUIDS_32_BIT_PARTIAL
```

Data type is Incomplete List of 32-bit Service Class UUIDs, see the Bluetooth Generic Access Profile for the details.

<br />

Constant Value: 4 (0x00000004)  

### DATA_TYPE_SIMPLE_PAIRING_HASH_C

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_SIMPLE_PAIRING_HASH_C
```

Data type is Simple Pairing Hash C, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 14 (0x0000000e)  

### DATA_TYPE_SIMPLE_PAIRING_HASH_C_256

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_SIMPLE_PAIRING_HASH_C_256
```

Data type is Simple Pairing Hash C-256, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 29 (0x0000001d)  

### DATA_TYPE_SIMPLE_PAIRING_RANDOMIZER_R

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_SIMPLE_PAIRING_RANDOMIZER_R
```

Data type is Simple Pairing Randomizer R, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 15 (0x0000000f)  

### DATA_TYPE_SIMPLE_PAIRING_RANDOMIZER_R_256

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_SIMPLE_PAIRING_RANDOMIZER_R_256
```

Data type is Simple Pairing Randomizer R-256, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 30 (0x0000001e)  

### DATA_TYPE_SLAVE_CONNECTION_INTERVAL_RANGE

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_SLAVE_CONNECTION_INTERVAL_RANGE
```

Data type is Slave Connection Interval Range, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 18 (0x00000012)  

### DATA_TYPE_TRANSPORT_DISCOVERY_DATA

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_TRANSPORT_DISCOVERY_DATA
```

Data type is Transport Discovery Data, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 38 (0x00000026)  

### DATA_TYPE_TX_POWER_LEVEL

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_TX_POWER_LEVEL
```

Data type is Tx Power Level, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 10 (0x0000000a)  

### DATA_TYPE_URI

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DATA_TYPE_URI
```

Data type is URI, see the Bluetooth Generic Access Profile for more details.

<br />

Constant Value: 36 (0x00000024)

## Public methods

### getAdvertiseFlags

Added in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int getAdvertiseFlags ()
```

Returns the advertising flags indicating the discoverable mode and capability of the device. Returns -1 if the flag field is not set.

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getAdvertisingDataMap

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Map<Integer, byte[]> getAdvertisingDataMap ()
```

Returns a map of advertising data type and its corresponding advertising data. The values of advertising data type are defined in the Bluetooth Generic Access Profile (https://www.bluetooth.com/specifications/assigned-numbers/)

<br />

|                                                                                      Returns                                                                                       ||
|------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [Map](https://developer.android.com/reference/java/util/Map)`<`[Integer](https://developer.android.com/reference/java/lang/Integer)`, byte[]>` | This value cannot be`null`. <br /> |

### getBytes

Added in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public byte[] getBytes ()
```

Returns raw bytes of scan record.

<br />

|     Returns      ||
|----------|--------|
| `byte[]` | <br /> |

### getDeviceName

Added in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public String getDeviceName ()
```

Returns the local name of the BLE device. This is a UTF-8 encoded string.

<br />

|                                               Returns                                               ||
|--------------------------------------------------------------------|---------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | This value may be`null`. <br /> |

### getManufacturerSpecificData

Added in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public SparseArray<byte[]> getManufacturerSpecificData ()
```

Returns a sparse array of manufacturer identifier and its corresponding manufacturer specific data.

<br />

|                                              Returns                                              ||
|-------------------------------------------------------------------------------------------|--------|
| [SparseArray](https://developer.android.com/reference/android/util/SparseArray)`<byte[]>` | <br /> |

### getManufacturerSpecificData

Added in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public byte[] getManufacturerSpecificData (int manufacturerId)
```

Returns the manufacturer specific data associated with the manufacturer id. Returns`null`if the`manufacturerId`is not found.

<br />

|           Parameters           ||
|------------------|--------------|
| `manufacturerId` | `int` <br /> |

|     Returns      ||
|----------|--------|
| `byte[]` | <br /> |

### getServiceData

Added in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public byte[] getServiceData (ParcelUuid serviceDataUuid)
```

Returns the service data byte array associated with the`serviceUuid`. Returns`null`if the`serviceDataUuid`is not found.

<br />

|               Parameters               ||
|-------------------|---------------------|
| `serviceDataUuid` | `ParcelUuid` <br /> |

|     Returns      ||
|----------|--------|
| `byte[]` | <br /> |

### getServiceData

Added in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Map<ParcelUuid, byte[]> getServiceData ()
```

Returns a map of service UUID and its corresponding service data.

<br />

|                                                                            Returns                                                                            ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------|--------|
| [Map](https://developer.android.com/reference/java/util/Map)`<`[ParcelUuid](https://developer.android.com/reference/android/os/ParcelUuid)`, byte[]>` | <br /> |

### getServiceSolicitationUuids

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public List<ParcelUuid> getServiceSolicitationUuids ()
```

Returns a list of service solicitation UUIDs within the advertisement that are used to identify the Bluetooth GATT services.

<br />

|                                                                                       Returns                                                                                       ||
|-------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [List](https://developer.android.com/reference/java/util/List)`<`[ParcelUuid](https://developer.android.com/reference/android/os/ParcelUuid)`>` | This value cannot be`null`. <br /> |

### getServiceUuids

Added in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public List<ParcelUuid> getServiceUuids ()
```

Returns a list of service UUIDs within the advertisement that are used to identify the bluetooth GATT services.

<br />

|                                                                         Returns                                                                         ||
|-------------------------------------------------------------------------------------------------------------------------------------------------|--------|
| [List](https://developer.android.com/reference/java/util/List)`<`[ParcelUuid](https://developer.android.com/reference/android/os/ParcelUuid)`>` | <br /> |

### getTxPowerLevel

Added in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int getTxPowerLevel ()
```

Returns the transmission power level of the packet in dBm. Returns[Integer.MIN_VALUE](https://developer.android.com/reference/java/lang/Integer#MIN_VALUE)if the field is not set. This value can be used to calculate the path loss of a received packet using the following equation:

`pathloss = txPowerLevel - rssi`

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### toString

Added in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public String toString ()
```

Returns a string representation of the object.

<br />

|                                                      Returns                                                      ||
|--------------------------------------------------------------------|-----------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | a string representation of the object. <br /> |