public class ReadResponse extends java.lang.Object implements DataReceivedCallback, android.os.Parcelable
onDataReceived(BluetoothDevice, Data) in
order to make getters work properly.| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<ReadResponse> |
CREATOR |
| Modifier | Constructor and Description |
|---|---|
|
ReadResponse() |
protected |
ReadResponse(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
android.bluetooth.BluetoothDevice |
getBluetoothDevice() |
Data |
getRawData() |
void |
onDataReceived(android.bluetooth.BluetoothDevice device,
Data data)
Callback received each time the value was read or has changed using
notifications or indications.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<ReadResponse> CREATOR
public ReadResponse()
protected ReadResponse(android.os.Parcel in)
public void onDataReceived(@NonNull
android.bluetooth.BluetoothDevice device,
@NonNull
Data data)
DataReceivedCallbackonDataReceived in interface DataReceivedCallbackdevice - the target device.data - the data received. If the DataMerger was used,
this contains the merged result.@Nullable public android.bluetooth.BluetoothDevice getBluetoothDevice()
@Nullable public Data getRawData()
public void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic int describeContents()
describeContents in interface android.os.Parcelable