public class WriteResponse extends java.lang.Object implements DataSentCallback, android.os.Parcelable
onDataSent(BluetoothDevice, Data) in
order to make getters work properly.| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<WriteResponse> |
CREATOR |
| Modifier | Constructor and Description |
|---|---|
protected |
WriteResponse(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
android.bluetooth.BluetoothDevice |
getBluetoothDevice() |
Data |
getRawData() |
void |
onDataSent(android.bluetooth.BluetoothDevice device,
Data data)
Callback received each time the value was written to a characteristic or descriptor,
or was read from the server characteristic or descriptor.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<WriteResponse> CREATOR
public void onDataSent(@NonNull
android.bluetooth.BluetoothDevice device,
@NonNull
Data data)
DataSentCallbackonDataSent in interface DataSentCallbackdevice - the target device.data - the data sent. If the DataSplitter was used, this contains the full data.@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