-
- All Implemented Interfaces:
-
android.os.Parcelable,no.nordicsemi.android.ble.callback.RssiCallback
public class RssiResult implements RssiCallback, Parcelable
-
-
Field Summary
Fields Modifier and Type Field Description private intrssipublic final static Parcelable.Creator<RssiResult>CREATOR
-
Constructor Summary
Constructors Constructor Description RssiResult()
-
Method Summary
Modifier and Type Method Description intgetRssi()voidonRssiRead(@NonNull() BluetoothDevice device, @IntRange(from = -128, to = 20) int rssi)Method called when the RSSI value has been read. BluetoothDevicegetBluetoothDevice()voidwriteToParcel(Parcel dest, int flags)intdescribeContents()-
Methods inherited from class no.nordicsemi.android.ble.callback.RssiCallback
onRssiRead -
Methods inherited from class android.os.Parcelable
describeContents, writeToParcel -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onRssiRead
void onRssiRead(@NonNull() BluetoothDevice device, @IntRange(from = -128, to = 20) int rssi)
Method called when the RSSI value has been read.
- Parameters:
device- the target device.rssi- the current RSSI value, in dBm.
-
getBluetoothDevice
@Nullable() BluetoothDevice getBluetoothDevice()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
describeContents
int describeContents()
-
-
-
-