docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class WrappedModerationService

    WrappedModerationService is the wrapped representation of the moderation service that is gonna be instancied into the ModerationService Instance.

    Inheritance
    object
    WrappedModerationService
    Implements
    IModerationService
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Moderation
    Assembly: Unity.Services.Moderation.dll
    Syntax
    public class WrappedModerationService : IModerationService, IDisposable

    Methods

    Dispose()

    Releases all resources used by the WrappedModerationService. This method should be called when the Moderation Service is no longer required by the game.

    Declaration
    public void Dispose()

    NewReport(string, ReportReason)

    Creates a new Report instance, with additional context if the game is using Vivox.

    Declaration
    public Report NewReport(string playerID, ReportReason reason)
    Parameters
    Type Name Description
    string playerID

    the UAS ID for the reported player

    ReportReason reason

    the reason/category for the player report

    Returns
    Type Description
    Report

    a Report instance

    ReportPlayer(Report)

    Sends the given report to the moderation service A report must at least contains a target player id and a reason for the report.

    Declaration
    public Task ReportPlayer(Report report)
    Parameters
    Type Name Description
    Report report

    the report object defining the report context

    Returns
    Type Description
    Task

    A awaitable Task, which will complete once the player report request has been made.

    Exceptions
    Type Condition
    ModerationServiceException

    Exception thrown if invalid reason provided, authentication error, or backend service error

    Implements

    IModerationService
    IDisposable
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)