RetroArch
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
DiscordRpc Class Reference
Inheritance diagram for DiscordRpc:
[legend]
Collaboration diagram for DiscordRpc:
[legend]

Classes

struct  DiscordUser
 
struct  EventHandlers
 
class  RichPresence
 
struct  RichPresenceStruct
 

Public Types

enum  Reply { Reply.No = 0, Reply.Yes = 1, Reply.Ignore = 2 }
 

Public Member Functions

delegate void ReadyCallback (ref DiscordUser connectedUser)
 
delegate void DisconnectedCallback (int errorCode, string message)
 
delegate void ErrorCallback (int errorCode, string message)
 
delegate void JoinCallback (string secret)
 
delegate void SpectateCallback (string secret)
 
delegate void RequestCallback (ref DiscordUser request)
 
static void Initialize (string applicationId, ref EventHandlers handlers, bool autoRegister, string optionalSteamId)
 
static void Shutdown ()
 
static void RunCallbacks ()
 
static void ClearPresence ()
 
static void Respond (string userId, Reply reply)
 
static void UpdateHandlers (ref EventHandlers handlers)
 
 DiscordRpc (TargetInfo Target)
 

Static Public Member Functions

static void UpdatePresence (RichPresence presence)
 

Private Member Functions

static void UpdatePresenceNative (ref RichPresenceStruct presence)
 

Member Enumeration Documentation

◆ Reply

enum DiscordRpc.Reply
strong
Enumerator
No 
Yes 
Ignore 

Constructor & Destructor Documentation

◆ DiscordRpc()

DiscordRpc.DiscordRpc ( TargetInfo  Target)
inline

Member Function Documentation

◆ ClearPresence()

static void DiscordRpc.ClearPresence ( )

◆ DisconnectedCallback()

delegate void DiscordRpc.DisconnectedCallback ( int  errorCode,
string  message 
)

◆ ErrorCallback()

delegate void DiscordRpc.ErrorCallback ( int  errorCode,
string  message 
)

◆ Initialize()

static void DiscordRpc.Initialize ( string  applicationId,
ref EventHandlers  handlers,
bool  autoRegister,
string  optionalSteamId 
)
Here is the caller graph for this function:

◆ JoinCallback()

delegate void DiscordRpc.JoinCallback ( string  secret)

◆ ReadyCallback()

delegate void DiscordRpc.ReadyCallback ( ref DiscordUser  connectedUser)

◆ RequestCallback()

delegate void DiscordRpc.RequestCallback ( ref DiscordUser  request)

◆ Respond()

static void DiscordRpc.Respond ( string  userId,
Reply  reply 
)
Here is the caller graph for this function:

◆ RunCallbacks()

static void DiscordRpc.RunCallbacks ( )
Here is the caller graph for this function:

◆ Shutdown()

static void DiscordRpc.Shutdown ( )
Here is the caller graph for this function:

◆ SpectateCallback()

delegate void DiscordRpc.SpectateCallback ( string  secret)

◆ UpdateHandlers()

static void DiscordRpc.UpdateHandlers ( ref EventHandlers  handlers)

◆ UpdatePresence()

static void DiscordRpc.UpdatePresence ( RichPresence  presence)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdatePresenceNative()

static void DiscordRpc.UpdatePresenceNative ( ref RichPresenceStruct  presence)
private
Here is the caller graph for this function:

The documentation for this class was generated from the following files: