BluetoothAddress
class BluetoothAddress : Parcelable
| kotlin.Any | |
| ↳ | android.bluetooth.BluetoothDevice.BluetoothAddress | 
A data class for Bluetooth address and address type.
Summary
| Inherited constants | |
|---|---|
| Public constructors | |
|---|---|
            BluetoothAddress(address: String?, addressType: Int) | 
        |
| Public methods | |
|---|---|
| Int | |
| String? | 
            
             Returns the address of this   | 
        
| Int | 
            
             Returns the address type of this   | 
        
| Unit | 
            writeToParcel(out: Parcel, flags: Int)Flatten this object in to a Parcel.  | 
        
| Properties | |
|---|---|
| static Parcelable.Creator<BluetoothDevice.BluetoothAddress!> | 
            
             
  | 
        
Public constructors
BluetoothAddress
BluetoothAddress(
address: String?,
addressType: Int)
| Parameters | |
|---|---|
address | 
            String?: This value may be null. | 
          
addressType | 
            Int: Value is android.bluetooth.BluetoothDevice#ADDRESS_TYPE_PUBLIC, android.bluetooth.BluetoothDevice#ADDRESS_TYPE_RANDOM, android.bluetooth.BluetoothDevice#ADDRESS_TYPE_ANONYMOUS, or android.bluetooth.BluetoothDevice#ADDRESS_TYPE_UNKNOWN | 
          
Public methods
describeContents
fun describeContents(): Int
| Return | |
|---|---|
Int | 
            a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
          
getAddress
fun getAddress(): String?
Returns the address of this BluetoothAddress. 
For example, "00:11:22:AA:BB:CC".
| Return | |
|---|---|
String? | 
            Bluetooth address as string This value may be null. | 
          
getAddressType
fun getAddressType(): Int
Returns the address type of this BluetoothAddress, one of ADDRESS_TYPE_PUBLIC, ADDRESS_TYPE_RANDOM, or ADDRESS_TYPE_UNKNOWN.
writeToParcel
fun writeToParcel(
out: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
| Parameters | |
|---|---|
dest | 
            The Parcel in which the object should be written. This value cannot be null. | 
          
flags | 
            Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
          
out | 
            Parcel: This value cannot be null. | 
          
Properties
CREATOR
static val CREATOR: Parcelable.Creator<BluetoothDevice.BluetoothAddress!>
Parcelable.Creator interface implementation.