Comment on page
RemotePlay.Client
Support us as a GitHub Sponsor and get instant access to all our assets, exclusive tools and assets, escalated support and issue tracking and our gratitude.
These articles are made possible by our GitHub Sponsors ... become a sponsor today!
using RemotePlay = HeathenEngineering.SteamworksIntegration.API.RemotePlay.Client;
public static class RemotePlay.Client
Functions that provide information about Steam Remote Play sessions, streaming your game content to another computer or to a Steam Link app or hardware.
Called when a session connects
public static SteamRemotePlaySessionConnectedEvent EventSessionConnected;
The handler would take the form
void Handler(SteamRemotePlaySessionConnected_t responce)
{
//Do Work
}
Called when a session disconnects
public static SteamRemotePlaySessionDisconnectedEvent EventSessionDisconnected;
The handler would take the form
void Handler(SteamRemotePlaySessionDisconnected_t responce)
{
//Do Work
}
Get the number of currently connected sessions
var count = API.RemotePlay.Client.GetSessionCounts();
Get the collection of current remote play sessions
var sessions = API.RemotePlay.Client.GetSessions();
Gets the user data of the connected session user
var user = API.RemotePlay.Client.GetSessionUser(session);
Gets the name of the session client device
var name = API.RemotePlay.Client.GetSessionClientName(session);
Gets the formfactor of the connected session
var formfactor = API.RemotePlay.Client.GetSessionClientFormFactor(session);
Get the resolution of the connected session
var resolution = API.RemotePlay.Client.GetSessionClientResolution(session);
Invite a friend to join the game using remote play together
if(API.RemotePlayClient.SendInvite(user))
Debug.Log("Done");
else
Debug.Log("Send failed");
Last modified 1mo ago