public final class P_DeviceHolder extends java.lang.Object implements UsesCustomNull
BluetoothDevice
. This is only meant to wrap callbacks
from the native layer to the internal layer. Once in the native layer, the device will be passed into
an instance of IBluetoothDevice
.Modifier and Type | Field and Description |
---|---|
static P_DeviceHolder |
NULL |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress() |
android.bluetooth.BluetoothDevice |
getDevice() |
boolean |
isNull()
Returns
true if the object's state represents what would otherwise be Java's built-in null . |
static P_DeviceHolder |
newHolder(android.bluetooth.BluetoothDevice device) |
static P_DeviceHolder |
newHolder(android.bluetooth.BluetoothDevice device,
java.lang.String macAddress) |
static P_DeviceHolder |
newHolder(android.content.Intent intent) |
static P_DeviceHolder |
newNullHolder(java.lang.String macAddress) |
public static final P_DeviceHolder NULL
public final android.bluetooth.BluetoothDevice getDevice()
public final java.lang.String getAddress()
public static P_DeviceHolder newHolder(android.bluetooth.BluetoothDevice device)
public static P_DeviceHolder newHolder(android.content.Intent intent)
public static P_DeviceHolder newHolder(android.bluetooth.BluetoothDevice device, java.lang.String macAddress)
public static P_DeviceHolder newNullHolder(java.lang.String macAddress)
public boolean isNull()
UsesCustomNull
true
if the object's state represents what would otherwise be Java's built-in null
.isNull
in interface UsesCustomNull