docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ISteamMatchmakingServerListResponse

    Managed implementation of the C++ ISteamMatchmakingServerListResponse callback sink passed to the SteamMatchmakingServers server-list requests. Steam calls it while the request is active, including again after RefreshQuery(HServerListRequest). Dispose it once ISteamMatchmakingServerListResponse.RefreshCompleteHandler has fired, or after CancelQuery(HServerListRequest) or ReleaseRequest(HServerListRequest), and not before. An undisposed sink is never collected.

    Handlers are invoked on the thread that dispatches the pipe: the package's callback thread, or the thread that calls RunFrameCallbacks(bool) or performs its own dispatch. Unlike Subscribe<T>(Action<T>, bool) handlers, they are not forwarded to the main thread, so calls to Unity APIs must be marshalled to it. Handler exceptions are caught and routed to ExceptionHandler.

    Inheritance
    object
    ISteamMatchmakingServerListResponse
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Steamworks.Interop
    Assembly: Unity.Steamworks.Interop.dll
    Syntax
    public sealed class ISteamMatchmakingServerListResponse : IDisposable

    Constructors

    ISteamMatchmakingServerListResponse(ServerRespondedHandler, ServerFailedToRespondHandler, RefreshCompleteHandler)

    Creates the native object that Steam calls back into. Every handler is required.

    Declaration
    public ISteamMatchmakingServerListResponse(ISteamMatchmakingServerListResponse.ServerRespondedHandler onServerResponded, ISteamMatchmakingServerListResponse.ServerFailedToRespondHandler onServerFailedToRespond, ISteamMatchmakingServerListResponse.RefreshCompleteHandler onRefreshComplete)
    Parameters
    Type Name Description
    ISteamMatchmakingServerListResponse.ServerRespondedHandler onServerResponded

    Called as each server answers.

    ISteamMatchmakingServerListResponse.ServerFailedToRespondHandler onServerFailedToRespond

    Called for each server that did not answer.

    ISteamMatchmakingServerListResponse.RefreshCompleteHandler onRefreshComplete

    Called once the refresh has finished.

    Methods

    Dispose()

    Frees the native response object and releases the handle that kept this sink alive.

    Declaration
    public void Dispose()

    Operators

    explicit operator IntPtr(ISteamMatchmakingServerListResponse)

    The native interface pointer the flat API takes for this sink.

    Declaration
    public static explicit operator IntPtr(ISteamMatchmakingServerListResponse that)
    Parameters
    Type Name Description
    ISteamMatchmakingServerListResponse that

    The sink to convert; may be null.

    Returns
    Type Description
    IntPtr

    The native object's address, or Zero when that is null or disposed.

    Implements

    IDisposable
    In This Article
    Back to top
    Copyright © 2026 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)