Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions docs/platforms/android/user-feedback/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,24 @@ The User Feedback form allows users to submit feedback from anywhere inside your
For the configuration options, please refer to the <PlatformLink to="/user-feedback/configuration/">User Feedback Widget Configuration</PlatformLink>.

```java
import io.sentry.android.core.SentryUserFeedbackDialog;
import io.sentry.Sentry;

SentryId sentryId = Sentry.captureMessage("My message"); // You can optionally associate an event using its id
// Just instantiate the dialog and show it whenever you want
new SentryUserFeedbackDialog.Builder(context).create().show();
Sentry.showUserFeedbackDialog(sentryId, options -> {
// The options set here will be applied to the current form only
options.setFormTitle("We want to hear from you!");
});
```
```kotlin
import io.sentry.android.core.SentryUserFeedbackDialog
import io.sentry.Sentry

val sentryId = Sentry.captureMessage("My message") // You can optionally associate an event using its id
// Just instantiate the dialog and show it whenever you want
SentryUserFeedbackDialog.Builder(context).create().show()
Sentry.showUserFeedbackDialog(sentryId) { options ->
// The options set here will be applied to the current form only
options.formTitle = "We want to hear from you!"
}
```

### Session Replay
Expand Down