BluetoothAddress


class BluetoothAddress


Represents a Bluetooth address for a remote device.

Summary

Constants

const Int

Address type is public and registered with the IEEE.

const Int

Address type is random non resolvable.

const Int

Address type is random resolvable.

const Int

Address type is random static.

const Int

Address type is unknown.

Public constructors

BluetoothAddress(address: String, addressType: Int)

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

String

a valid Bluetooth MAC address

Int

a valid address type

Constants

ADDRESS_TYPE_PUBLIC

const val ADDRESS_TYPE_PUBLIC = 0: Int

Address type is public and registered with the IEEE.

ADDRESS_TYPE_RANDOM_NON_RESOLVABLE

const val ADDRESS_TYPE_RANDOM_NON_RESOLVABLE = 3: Int

Address type is random non resolvable.

ADDRESS_TYPE_RANDOM_RESOLVABLE

const val ADDRESS_TYPE_RANDOM_RESOLVABLE = 2: Int

Address type is random resolvable.

ADDRESS_TYPE_RANDOM_STATIC

const val ADDRESS_TYPE_RANDOM_STATIC = 1: Int

Address type is random static.

ADDRESS_TYPE_UNKNOWN

const val ADDRESS_TYPE_UNKNOWN = 65535: Int

Address type is unknown.

Public constructors

BluetoothAddress

Added in 1.0.0-alpha02
BluetoothAddress(address: String, addressType: Int)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

address

Added in 1.0.0-alpha02
val addressString

a valid Bluetooth MAC address

addressType

Added in 1.0.0-alpha02
val addressTypeInt

a valid address type