Documentation

Support

Vivox Unreal SDK

Vivox Unreal SDK

Moderation SDK

How to implement the Moderation SDK for Vivox.
Read time 1 minuteLast updated 2 days ago

Report a player

Once the setup is complete, you can report players by using their UAS ID and providing a reason for the report. Once the player is reported, you can navigate to the Unity Dashboard to review incidents with the attached report information. If you’re using the Vivox Unreal Module packaged with the Moderation Unreal Module, the last 45 minutes of the conversation from the channel that the reporter and the reported were in will be attached to the report. Below is an example of a report being submitted:
#include "ModerationSubsystem.h"void UGameInstance::IssueModerationReport(FString ReportedPlayerUASId, EReportReason reportReason){ UModerationSubsystem* moderationSubsystem; moderationSubsystem = GetSubsystem<UModerationSubsystem>(); FReport report = ModerationClient->GetReport(ReportedPlayerUASId, reportReason); Moderation::THandler<FReportResponse> reportHandler; reportHandler.BindLambda([](FReportResponse response) { if (response.bWasSuccessful) { UE_LOG(LogTemp, Log, TEXT("call was successfull")); } else { UE_LOG(LogTemp, Log, TEXT("call was not successfull")); } }); ModerationClient->ReportPost(report, authenticationToken, handler);}

Report reason

Reasons are defined by Unity and are available using the EReportReason enum. Find the constants for each reason in Moderation > Public > ReportReason.h.

Constant

Reason

public const string AimSnapping= "aim snapping";
public const string Boosting= "boosting";
public const string Exploiting= "exploiting";
public const string Hacking= "hacking";
public const string Smurfing= "smurfing";
public const string UnrealisticMovement= "unrealistic movement";
public const string CollusionWithOpponent= "collusion with opponent";
public const string LeftMatch= "left the match";
public const string Inactive= "inactive";
public const string Sabotage= "sabotage";
public const string Spamming= "spamming";
public const string HateSpeech= "hate speech";
public const string PredatoryBehavior= "predatory behavior";
public const string NoiseDisruption= "noise disruption";
public const string Scamming= "scamming";
public const string Ads= "ads";
public const string Threat= "threat";
public const string VerbalAbuse= "verbal abuse";
public const string InappropriatePlayerName= "player name";