-
public interface RecordAccessControlPointCallback
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public @interfaceRecordAccessControlPointCallback.RACPOpCodepublic @interfaceRecordAccessControlPointCallback.RACPErrorCode
-
Method Summary
Modifier and Type Method Description abstract voidonRecordAccessOperationCompleted(@NonNull() BluetoothDevice device, int requestCode)Callback called when the request has finished successfully, that isall requested records were reported or deleted, or the operation has aborted,depending on the request. abstract voidonRecordAccessOperationCompletedWithNoRecordsFound(@NonNull() BluetoothDevice device, int requestCode)Callback called when the request to report or delete records has finishedsuccessfully, but no records were found matching given filter criteria. abstract voidonNumberOfRecordsReceived(@NonNull() BluetoothDevice device, @IntRange(from = 0) int numberOfRecords)Callback called as a result to 'Report number of stored records' request, also when therewere no records found. abstract voidonRecordAccessOperationError(@NonNull() BluetoothDevice device, int requestCode, int errorCode)Callback called in case an error has been returned from the Record Access Control Pointcharacteristic. -
-
Method Detail
-
onRecordAccessOperationCompleted
abstract void onRecordAccessOperationCompleted(@NonNull() BluetoothDevice device, int requestCode)
Callback called when the request has finished successfully, that isall requested records were reported or deleted, or the operation has aborted,depending on the request.
- Parameters:
device- the target device.requestCode- the request code that has completed, one of RACP_OP_CODE_* constants.
-
onRecordAccessOperationCompletedWithNoRecordsFound
abstract void onRecordAccessOperationCompletedWithNoRecordsFound(@NonNull() BluetoothDevice device, int requestCode)
Callback called when the request to report or delete records has finishedsuccessfully, but no records were found matching given filter criteria.
- Parameters:
device- the target device.requestCode- the request code that has completed, one of RACP_OP_CODE_* constants.
-
onNumberOfRecordsReceived
abstract void onNumberOfRecordsReceived(@NonNull() BluetoothDevice device, @IntRange(from = 0) int numberOfRecords)
Callback called as a result to 'Report number of stored records' request, also when therewere no records found.
- Parameters:
device- the target device.numberOfRecords- the number of records matching given filter criteria.
-
onRecordAccessOperationError
abstract void onRecordAccessOperationError(@NonNull() BluetoothDevice device, int requestCode, int errorCode)
Callback called in case an error has been returned from the Record Access Control Pointcharacteristic.
The 'No records found' error is returned as onRecordAccessOperationCompletedWithNoRecordsFound instead.
- Parameters:
device- the target device.requestCode- the request code that has finished with an error.errorCode- the error code, one of RACP_ERROR_* constants, or other (unknown)is such was reported.
-
-
-
-