docs.unity.cn
    Show / Hide Table of Contents

    Interface IQosService

    An interface that allows access to QoS measurements. Your game code should use this interface through QosService.Instance.

    Namespace: Unity.Services.Qos
    Syntax
    public interface IQosService

    Methods

    GetSortedQosResultsAsync(String, IList<String>)

    Gets sorted QoS measurements the specified service and regions.

    Declaration
    Task<IList<IQosResult>> GetSortedQosResultsAsync(string service, IList<string> regions)
    Parameters
    Type Name Description
    String service

    The service to query regions for QoS. GetSortedQosResultsAsync only uses measures regions configured for the specified service.

    IList<String> regions

    The regions to query for QoS. If not null or empty, GetSortedQosResultsAsync only uses regions in the intersection of the specified service and the specified regions for measurements.

    Returns
    Type Description
    Task<IList<IQosResult>>

    Returns the sorted list of QoS results, ordered from best to worst.

    Remarks

    GetSortedQosResultsAsync doesn't consider the returned regions until applying the services and regions filters.

    If you specify regions, it only includes those regions.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, August 9, 2022
    Terms of use