Uses of Enum Class
de.jcm.discordgamesdk.Result
Packages that use Result
-
Uses of Result in de.jcm.discordgamesdk
Fields in de.jcm.discordgamesdk with type parameters of type ResultModifier and TypeFieldDescriptionCore.DEFAULT_CALLBACKDefault callback to use for operation returning aResult.Methods in de.jcm.discordgamesdk that return ResultModifier and TypeMethodDescriptionCore.CorePrivate.checkError(de.jcm.discordgamesdk.impl.Command c) static ResultResult.fromCode(int code) GameSDKException.getResult()Non-OKresult 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 ResultReturns 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.Methods in de.jcm.discordgamesdk that return types with arguments of type ResultModifier and TypeMethodDescriptionDiscordUtils.completer(CompletableFuture<Void> future) static <T> BiConsumer<Result, T> DiscordUtils.returningCompleter(CompletableFuture<T> future) Method parameters in de.jcm.discordgamesdk with type arguments of type ResultModifier and TypeMethodDescriptionvoidActivityManager.acceptRequest(long userId, Consumer<Result> callback) Accepts a game invitation from another user.voidApplicationManager.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.voidActivityManager.clearActivity(Consumer<Result> callback) Clears the user's current presence.voidImageManager.fetch(ImageHandle handle, boolean refresh, BiConsumer<Result, ImageHandle> callback) Prepares an image to later retrieve it.voidApplicationManager.getOAuth2Token(BiConsumer<Result, ApplicationManager.DiscordOAuth2Token> callback) Requests authorization from the user (if not obtained already) and returns the OAuth2 token in the callback.voidUserManager.getUser(long userId, BiConsumer<Result, DiscordUser> callback) Fetches information about a Discord user.voidOverlayManager.openActivityInvite(ActivityActionType type, Consumer<Result> callback) Opens the overlay and prepares a join/spectate invitation to send.voidOverlayManager.openGuildInvite(String code, Consumer<Result> callback) Opens the overlay and attempts to join a guild with an invite code.voidOverlayManager.openVoiceSettings(Consumer<Result> callback) Opens the overlay and shows a widget to adjust the user's application specific voice settings.voidActivityManager.sendInvite(long userId, ActivityActionType type, String content, Consumer<Result> callback) Invites a user to join your game.voidActivityManager.sendRequestReply(long userId, ActivityJoinRequestReply reply, Consumer<Result> callback) Replies to an "Ask to join" request.voidVoiceManager.setInputMode(VoiceInputMode inputMode, Consumer<Result> callback) Sets a new voice input mode for the current user.voidChanges the locked status of the overlay.voidActivityManager.updateActivity(Activity activity, Consumer<Result> callback) Updates the user's current presence to a new activity.Constructors in de.jcm.discordgamesdk with parameters of type Result