# FeedbackApi

Use this API to submit feedback on SDK detections.

## FeedbackApi API

### `submitOccupantRoleFeedback()`

Submits feedback for the detected occupant role of a specified transport. This feedback is utilized to enhance the accuracy of occupant role detection in future transport instances.

It is important to note that submitting feedback will not alter the occupant role currently assigned to the transport.

Returns the feedback result. See [OccupantRoleFeedbackResult](https://docs.sentiance.com/important-topics/sdk/api-reference/android/feedback/occupantrolefeedbackresult).

Throws SdkException if the SDK is not initialized.

```java
OccupantRoleFeedbackResult submitOccupantRoleFeedback(
        String transportId,
        OccupantRoleFeedback occupantRole
);
```

<table><thead><tr><th width="220">Parameters</th><th></th></tr></thead><tbody><tr><td>transportId</td><td>The identifier of the transport for which feedback is being provided.</td></tr><tr><td>occupantRole</td><td>The correct occupant role. See <a href="occupantrolefeedback">OccupantRoleFeedback</a>.</td></tr></tbody></table>

### `submitVehicleCrashDetectionFeedback()`

Submits feedback about a vehicle crash, whether it was detected and reported by the Sentiance SDK or occurred in real life but was not detected.

This feedback is used by Sentiance to analyze incidents and improve the accuracy and reliability of future crash detections.

Returns the feedback result. See [VehicleCrashDetectionFeedbackResult](https://docs.sentiance.com/important-topics/sdk/api-reference/android/feedback/vehiclecrashdetectionfeedbackresult).

Throws SdkException if the SDK is not initialized.

```java
VehicleCrashDetectionFeedbackResult submitVehicleCrashDetectionFeedback(
        VehicleCrashDetectionFeedback vehicleCrashDetectionFeedback
);
```

<table><thead><tr><th width="287.09197998046875">Parameters</th><th></th></tr></thead><tbody><tr><td>vehicleCrashDetectionFeedback</td><td>The vehicle crash detection feedback. See <a href="vehiclecrashdetectionfeedback">VehicleCrashDetectionFeedback</a>.</td></tr></tbody></table>
