Uses of Enum Class
de.jcm.discordgamesdk.Result
-
Uses of Result in de.jcm.discordgamesdk
Modifier and TypeFieldDescriptionCore.DEFAULT_CALLBACK
Default callback to use for operation returning aResult
.Modifier and TypeMethodDescriptionCore.CorePrivate.checkError
(de.jcm.discordgamesdk.impl.Command c) static Result
Result.fromCode
(int code) GameSDKException.getResult()
Non-OK
result that occurred.ActivityManager.registerCommand
(String command) Registers a command for Discord to use to launch your game.ActivityManager.registerSteam
(int steamId) Registers a Steam launch for your game.static Result
Returns the enum constant of this class with the specified name.static Result[]
Result.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionDiscordUtils.completer
(CompletableFuture<Void> future) static <T> BiConsumer
<Result, T> DiscordUtils.returningCompleter
(CompletableFuture<T> future) Modifier and TypeMethodDescriptionvoid
ActivityManager.acceptRequest
(long userId, Consumer<Result> callback) Accepts a game invitation from another user.void
ApplicationManager.authenticate
(BiConsumer<Result, ApplicationManager.AuthenticationData> callback) 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.void
ActivityManager.clearActivity
(Consumer<Result> callback) Clears the user's current presence.void
ImageManager.fetch
(ImageHandle handle, boolean refresh, BiConsumer<Result, ImageHandle> callback) Prepares an image to later retrieve it.void
ApplicationManager.getOAuth2Token
(BiConsumer<Result, ApplicationManager.DiscordOAuth2Token> callback) Requests authorization from the user (if not obtained already) and returns the OAuth2 token in the callback.void
UserManager.getUser
(long userId, BiConsumer<Result, DiscordUser> callback) Fetches information about a Discord user.void
OverlayManager.openActivityInvite
(ActivityActionType type, Consumer<Result> callback) Opens the overlay and prepares a join/spectate invitation to send.void
OverlayManager.openGuildInvite
(String code, Consumer<Result> callback) Opens the overlay and attempts to join a guild with an invite code.void
OverlayManager.openVoiceSettings
(Consumer<Result> callback) Opens the overlay and shows a widget to adjust the user's application specific voice settings.void
ActivityManager.sendInvite
(long userId, ActivityActionType type, String content, Consumer<Result> callback) Invites a user to join your game.void
ActivityManager.sendRequestReply
(long userId, ActivityJoinRequestReply reply, Consumer<Result> callback) Replies to an "Ask to join" request.void
VoiceManager.setInputMode
(VoiceInputMode inputMode, Consumer<Result> callback) Sets a new voice input mode for the current user.void
Changes the locked status of the overlay.void
ActivityManager.updateActivity
(Activity activity, Consumer<Result> callback) Updates the user's current presence to a new activity.