Package de.jcm.discordgamesdk
Class ApplicationManager
java.lang.Object
de.jcm.discordgamesdk.ApplicationManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA Discord application.static final recordCombined data consisting of aApplicationManager.DiscordOAuth2Token, anApplicationManager.Application, and aDiscordUserstatic final recordA Discord OAuth2 token. -
Method Summary
Modifier and TypeMethodDescriptionvoidRequests authorization from the user (if not obtained already) and returns the OAuth2 token and some additional information about user and application in a callback.voidRequests authorization from the user (if not obtained already) and returns the OAuth2 token in the callback.
-
Method Details
-
getOAuth2Token
Requests authorization from the user (if not obtained already) and returns the OAuth2 token in the callback.- Parameters:
callback- Callback to process the returnedResultandApplicationManager.DiscordOAuth2Token.
-
authenticate
Requests authorization from the user (if not obtained already) and returns the OAuth2 token and some additional information about user and application in a callback.- Parameters:
callback- Callback to process the returnedResultandApplicationManager.AuthenticationData.
-