public class DiscordEventHandlers
extends com.sun.jna.Structure
| Modifier and Type | Class and Description |
|---|---|
static interface |
DiscordEventHandlers.OnGameUpdate
Handler function for game update events (joinGame, spectateGame)
|
static interface |
DiscordEventHandlers.OnJoinRequest
Handler function for user join requests
|
static interface |
DiscordEventHandlers.OnReady
Handler function for the ready event
|
static interface |
DiscordEventHandlers.OnStatus
Handler function for the exceptional events (error, disconnect)
|
| Modifier and Type | Field and Description |
|---|---|
DiscordEventHandlers.OnStatus |
disconnected
Called when the RPC connection has been severed
|
DiscordEventHandlers.OnStatus |
errored
Called when an internal error is caught within the SDK
|
DiscordEventHandlers.OnGameUpdate |
joinGame
Called when the logged in user joined a game
|
DiscordEventHandlers.OnJoinRequest |
joinRequest
Called when another discord user wants to join the game of the logged in user
|
DiscordEventHandlers.OnReady |
ready
Called when the RPC connection has been established
|
DiscordEventHandlers.OnGameUpdate |
spectateGame
Called when the logged in user joined to spectate a game
|
| Constructor and Description |
|---|
DiscordEventHandlers() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
protected java.util.List<java.lang.String> |
getFieldOrder() |
int |
hashCode() |
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeFieldpublic DiscordEventHandlers.OnReady ready
public DiscordEventHandlers.OnStatus disconnected
public DiscordEventHandlers.OnStatus errored
public DiscordEventHandlers.OnGameUpdate joinGame
public DiscordEventHandlers.OnGameUpdate spectateGame
public DiscordEventHandlers.OnJoinRequest joinRequest
public boolean equals(java.lang.Object o)
equals in class com.sun.jna.Structurepublic int hashCode()
hashCode in class com.sun.jna.Structureprotected java.util.List<java.lang.String> getFieldOrder()
getFieldOrder in class com.sun.jna.Structure