Class SteamCallbacks
Entry point for Steam callbacks and async call results beyond Platform Toolkit's built-in abstractions.
Inherited Members
Namespace: Unity.PlatformToolkit.Steam
Assembly: Unity.PlatformToolkit.Steam.dll
Syntax
public static class SteamCallbacks
Methods
GetCallResult<T>(Func<ulong>)
Awaits a Steam async call result. Pass a method that calls the Steamworks API and returns the SteamAPICall_t handle.
Declaration
public static Task<T> GetCallResult<T>(Func<ulong> steamAsyncFunc) where T : struct
Parameters
| Type | Name | Description |
|---|---|---|
| Func<ulong> | steamAsyncFunc | A method that invokes a Steamworks API and returns the |
Returns
| Type | Description |
|---|---|
| Task<T> | A Task<TResult> that completes with the deserialized call result when Steam delivers the response. |
Type Parameters
| Name | Description |
|---|---|
| T | The Steamworks call result struct to deserialize the response into. Must match the call result type that the invoked API returns. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | Thrown if |
Events
OnCallback
Raised for every Steam callback seen internally by Platform Toolkit.
Declaration
public static event Action<SteamCallbackMsg> OnCallback
Event Type
| Type | Description |
|---|---|
| Action<SteamCallbackMsg> |