public class RichPresence extends Game
Game
relevant to Rich Presence.| Modifier and Type | Class | Description |
|---|---|---|
class |
RichPresence.Image |
Used to hold information on images within a Rich Presence profile
|
static class |
RichPresence.Party |
Holds information on a player's party
|
static class |
RichPresence.Timestamps |
Represents the start and end timestamps for a running match
|
Game.GameType| Modifier and Type | Method | Description |
|---|---|---|
RichPresence |
asRichPresence() |
RichPresence representation of
this Game. |
boolean |
equals(java.lang.Object o) |
|
java.lang.String |
getApplicationId() |
The ID for the responsible application.
|
long |
getApplicationIdLong() |
The ID for the responsible application.
|
java.lang.String |
getDetails() |
What the player is currently doing
Example: "Competitive - Captain's Mode", "In Queue", "Unranked PvP" |
int |
getFlags() |
Flags for this presence
|
java.util.EnumSet<ActivityFlag> |
getFlagSet() |
Flags for this presence in an enum set
|
RichPresence.Image |
getLargeImage() |
Information on the large image displayed in the profile view
|
RichPresence.Party |
getParty() |
Information on the active party of the player
|
java.lang.String |
getSessionId() |
Session ID for this presence.
|
RichPresence.Image |
getSmallImage() |
Information on the small corner image displayed in the profile view
|
java.lang.String |
getState() |
The user's current party status
Example: "Looking to Play", "Playing Solo", "In a Group" |
java.lang.String |
getSyncId() |
Sync ID for this presence.
|
int |
hashCode() |
|
boolean |
isRich() |
|
java.lang.String |
toString() |
public boolean isRich()
GameisRich in class Gametrue if this is a RichPresencepublic RichPresence asRichPresence()
GameRichPresence representation of
this Game.asRichPresence in class Gamenull if Game.isRich() returns falsepublic long getApplicationIdLong()
@Nonnull public java.lang.String getApplicationId()
@Nullable public java.lang.String getSessionId()
@Nullable public java.lang.String getSyncId()
public int getFlags()
ActivityFlag,
ActivityFlag.getFlags(int)public java.util.EnumSet<ActivityFlag> getFlagSet()
ActivityFlag,
ActivityFlag.getFlags(int)@Nullable public java.lang.String getState()
@Nullable public java.lang.String getDetails()
@Nullable public RichPresence.Party getParty()
Party wrapper or null if unset@Nullable public RichPresence.Image getLargeImage()
Image wrapper or null if unset@Nullable public RichPresence.Image getSmallImage()
Image wrapper or null if unset