-
- All Implemented Interfaces:
-
android.os.Parcelable,no.nordicsemi.android.ble.callback.DataSentCallback
public class WriteResponse implements DataSentCallback, Parcelable
Generic write response class that returns the target device and the data that were sent. Overriding class must call super on onDataSent in order to make getters work properly.
-
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<WriteResponse>CREATOR
-
Constructor Summary
Constructors Constructor Description WriteResponse()
-
Method Summary
Modifier and Type Method Description voidonDataSent(@NonNull() BluetoothDevice device, @NonNull() Data data)Callback received each time the value was written to a characteristic or descriptor,or was read from the server characteristic or descriptor. BluetoothDevicegetBluetoothDevice()DatagetRawData()voidwriteToParcel(Parcel dest, int flags)intdescribeContents()-
-
Method Detail
-
onDataSent
void onDataSent(@NonNull() BluetoothDevice device, @NonNull() Data data)
Callback received each time the value was written to a characteristic or descriptor,or was read from the server characteristic or descriptor.
- Parameters:
device- the target device.data- the data sent.
-
getBluetoothDevice
@Nullable() BluetoothDevice getBluetoothDevice()
-
getRawData
@Nullable() Data getRawData()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
describeContents
int describeContents()
-
-
-
-