docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ISteamMatchmakingRulesResponse

    Managed implementation of the C++ ISteamMatchmakingRulesResponse callback sink passed to ServerRules(uint, ushort, ISteamMatchmakingRulesResponse). One ISteamMatchmakingRulesResponse.RulesRespondedHandler call is made per rule, followed by either ISteamMatchmakingRulesResponse.RulesRefreshCompleteHandler or ISteamMatchmakingRulesResponse.RulesFailedToRespondHandler. Dispose it after that call or after CancelServerQuery(HServerQuery), 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. When that is not the main thread, calls to Unity APIs must be marshalled to the main thread. Handler exceptions are caught and routed to ExceptionHandler.

    Inheritance
    object
    ISteamMatchmakingRulesResponse
    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 ISteamMatchmakingRulesResponse : IDisposable

    Constructors

    ISteamMatchmakingRulesResponse(RulesRespondedHandler, RulesFailedToRespondHandler, RulesRefreshCompleteHandler)

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

    Declaration
    public ISteamMatchmakingRulesResponse(ISteamMatchmakingRulesResponse.RulesRespondedHandler onRulesResponded, ISteamMatchmakingRulesResponse.RulesFailedToRespondHandler onRulesFailedToRespond, ISteamMatchmakingRulesResponse.RulesRefreshCompleteHandler onRulesRefreshComplete)
    Parameters
    Type Name Description
    ISteamMatchmakingRulesResponse.RulesRespondedHandler onRulesResponded

    Called once per rule as the server reports them.

    ISteamMatchmakingRulesResponse.RulesFailedToRespondHandler onRulesFailedToRespond

    Called when the server did not answer.

    ISteamMatchmakingRulesResponse.RulesRefreshCompleteHandler onRulesRefreshComplete

    Called once every rule has been reported.

    Methods

    Dispose()

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

    Declaration
    public void Dispose()

    Operators

    explicit operator IntPtr(ISteamMatchmakingRulesResponse)

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

    Declaration
    public static explicit operator IntPtr(ISteamMatchmakingRulesResponse that)
    Parameters
    Type Name Description
    ISteamMatchmakingRulesResponse 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)