public class RssiResult extends java.lang.Object implements RssiCallback, android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<RssiResult> |
CREATOR |
| Modifier | Constructor and Description |
|---|---|
protected |
RssiResult(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
android.bluetooth.BluetoothDevice |
getBluetoothDevice() |
int |
getRssi() |
void |
onRssiRead(android.bluetooth.BluetoothDevice device,
int rssi)
Method called when the RSSI value has been read.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<RssiResult> CREATOR
public void onRssiRead(@NonNull
android.bluetooth.BluetoothDevice device,
int rssi)
RssiCallbackonRssiRead in interface RssiCallbackdevice - the target device.rssi - the current RSSI value, in dBm.@Nullable public android.bluetooth.BluetoothDevice getBluetoothDevice()
public int getRssi()
public void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic int describeContents()
describeContents in interface android.os.Parcelable