public static enum IPCClient.Event extends java.lang.Enum<IPCClient.Event>
IPCClient.subscribe(Event)
.
Each event corresponds to a different function as a component of the Rich
Presence.
A full breakdown of each is available here.
Enum Constant and Description |
---|
ACTIVITY_JOIN |
ACTIVITY_JOIN_REQUEST |
ACTIVITY_SPECTATE |
ERROR |
NULL |
READY |
UNKNOWN
A backup key, only important if the IPCClient receives an unknown event type
in a JSON payload.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSubscribable() |
static IPCClient.Event |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IPCClient.Event[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IPCClient.Event NULL
public static final IPCClient.Event READY
public static final IPCClient.Event ERROR
public static final IPCClient.Event ACTIVITY_JOIN
public static final IPCClient.Event ACTIVITY_SPECTATE
public static final IPCClient.Event ACTIVITY_JOIN_REQUEST
public static final IPCClient.Event UNKNOWN
public static IPCClient.Event[] values()
for (IPCClient.Event c : IPCClient.Event.values()) System.out.println(c);
public static IPCClient.Event valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isSubscribable()