Package 

Interface SpeedAndCadenceControlPointCallback

    • 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.