Skip to content
Merged
Show file tree
Hide file tree
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: 8 additions & 8 deletions platform-includes/user-feedback/sdk-api-example/unreal.mdx
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
```cpp
USentrySubsystem* SentrySubsystem = GEngine->GetEngineSubsystem<USentrySubsystem>();

USentryId* EventId = SentrySubsystem->CaptureMessage(TEXT("Message with feedback"));
FString EventId = SentrySubsystem->CaptureMessage("Message with feedback");

USentryUserFeedback* UserFeedback = NewObject<USentryUserFeedback>();
User->Initialize(EventId);
User->SetEmail("[email protected]");
User->SetName("Name");
User->SetComment("Some comment");
USentryFeedback* UserFeedback = NewObject<USentryFeedback>();
UserFeedback->Initialize("Feedback message");
UserFeedback->SetName("Jon Doe");
UserFeedback->SetContactEmail("[email protected]");
UserFeedback->SetAssociatedEvent(EventId);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// optional event id


SentrySubsystem->CaptureUserFeedback(UserFeedback);
SentrySubsystem->CaptureFeedback(UserFeedback);

// OR

SentrySubsystem->CaptureUserFeedbackWithParams(EventId, "[email protected]", "Some comment", "Name");
SentrySubsystem->CaptureFeedbackWithParams("Feedback message", "Jon Doe", "[email protected]", EventId);
```
The same result can be achieved by calling corresponding functions in blueprint:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.