# Disabling/Enabling Crash Reporting

Use `CrashReportingKmp.setState` to turn crash reporting on or off at runtime:

{% code title="Kotlin" %}

```kotlin
CrashReportingKmp.setState(FeatureState.Enabled)
CrashReportingKmp.setState(FeatureState.Disabled)
```

{% endcode %}

When disabled, native crashes and non-fatal reports are not sent. User consent (if you use it) still applies when the feature is enabled.
