docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RTCStatsReport

    Represents a report containing multiple RTCStats objects.

    Inheritance
    object
    RTCStatsReport
    Implements
    IDisposable
    Namespace: Unity.WebRTC
    Assembly: Unity.WebRTC.dll
    Syntax
    public class RTCStatsReport : IDisposable

    Properties

    Stats

    Returns all stats objects in this report.

    Declaration
    public IDictionary<string, RTCStats> Stats { get; }
    Property Value
    Type Description
    IDictionary<string, RTCStats>

    Methods

    Dispose()

    Releases resources held by this report.

    Declaration
    public void Dispose()

    ~RTCStatsReport()

    Finalizer to ensure resources are released.

    Declaration
    protected ~RTCStatsReport()

    Get(string)

    Retrieves a stats object by its identifier.

    Declaration
    public RTCStats Get(string id)
    Parameters
    Type Name Description
    string id

    Stats identifier.

    Returns
    Type Description
    RTCStats

    The corresponding RTCStats object.

    TryGetValue(string, out RTCStats)

    Attempts to get a stats object by its identifier.

    Declaration
    public bool TryGetValue(string id, out RTCStats stats)
    Parameters
    Type Name Description
    string id

    Stats identifier.

    RTCStats stats

    Output parameter for the stats object.

    Returns
    Type Description
    bool

    True if found, otherwise false.

    Implements

    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)