-
- All Implemented Interfaces:
-
no.nordicsemi.android.ble.common.profile.sc.SensorLocationTypes
public interface SpeedAndCadenceControlPointCallback implements SensorLocationTypes
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public @interfaceSpeedAndCadenceControlPointCallback.SCOpCodepublic @interfaceSpeedAndCadenceControlPointCallback.SCErrorCode
-
Method Summary
Modifier and Type Method Description abstract voidonSCOperationCompleted(@NonNull() BluetoothDevice device, int requestCode)Callback called when a SC Control Point request has finished successfully. abstract voidonSCOperationError(@NonNull() BluetoothDevice device, int requestCode, int errorCode)Callback called when a SC Control Point request has failed. abstract voidonSupportedSensorLocationsReceived(@NonNull() BluetoothDevice device, @NonNull() Array<int> locations)Callback indicating successful response for SC_OP_CODE_REQUEST_SUPPORTED_SENSOR_LOCATIONS request. -
-
Method Detail
-
onSCOperationCompleted
abstract void onSCOperationCompleted(@NonNull() BluetoothDevice device, int requestCode)
Callback called when a SC Control Point request has finished successfully.In case of SC_OP_CODE_REQUEST_SUPPORTED_SENSOR_LOCATIONS request, the onSupportedSensorLocationsReceived will be called instead.
- Parameters:
device- the target device.requestCode- the request code that has completed.
-
onSCOperationError
abstract void onSCOperationError(@NonNull() BluetoothDevice device, int requestCode, int errorCode)
Callback called when a SC Control Point request has failed.
- Parameters:
device- the target device.requestCode- the request code that has completed with an error.One of SC_OP_CODE_* constants, or other if such was requested.errorCode- the received error code, see SC_ERROR_* constants.
-
onSupportedSensorLocationsReceived
abstract void onSupportedSensorLocationsReceived(@NonNull() BluetoothDevice device, @NonNull() Array<int> locations)
Callback indicating successful response for SC_OP_CODE_REQUEST_SUPPORTED_SENSOR_LOCATIONS request.
- Parameters:
device- the target device.locations- an array with supported locations.
-
-
-
-