public class PhyResult extends java.lang.Object implements PhyCallback, android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<PhyResult> |
CREATOR |
PHY_LE_1M, PHY_LE_2M, PHY_LE_CODED| Modifier | Constructor and Description |
|---|---|
protected |
PhyResult(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
android.bluetooth.BluetoothDevice |
getBluetoothDevice() |
int |
getRxPhy() |
int |
getTxPhy() |
void |
onPhyChanged(android.bluetooth.BluetoothDevice device,
int txPhy,
int rxPhy)
Method called when the PHY value has changed or was read.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<PhyResult> CREATOR
public void onPhyChanged(@NonNull
android.bluetooth.BluetoothDevice device,
int txPhy,
int rxPhy)
PhyCallbackonPhyChanged in interface PhyCallbackdevice - the target device.txPhy - the transmitter PHY in use. One of PhyCallback.PHY_LE_1M,
PhyCallback.PHY_LE_2M, and PhyCallback.PHY_LE_CODED.rxPhy - the receiver PHY in use. One of PhyCallback.PHY_LE_1M,
PhyCallback.PHY_LE_2M, and PhyCallback.PHY_LE_CODED.@Nullable public android.bluetooth.BluetoothDevice getBluetoothDevice()
public int getTxPhy()
public int getRxPhy()
public void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic int describeContents()
describeContents in interface android.os.Parcelable