diff --git a/docs/platforms/android/user-feedback/index.mdx b/docs/platforms/android/user-feedback/index.mdx index 463ca117ab09e2..8964a8042ae6c1 100644 --- a/docs/platforms/android/user-feedback/index.mdx +++ b/docs/platforms/android/user-feedback/index.mdx @@ -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 User Feedback Widget Configuration. ```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