Class OverlayManager
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the overlay is enabled by the user.booleanisLocked()Checks if the overlay is locked.voidOpens the overlay and prepares a join/spectate invitation to send.voidopenActivityInvite(ActivityActionType type, Consumer<Result> callback) Opens the overlay and prepares a join/spectate invitation to send.voidopenGuildInvite(String code) Opens the overlay and attempts to join a guild with an invite code.voidopenGuildInvite(String code, Consumer<Result> callback) Opens the overlay and attempts to join a guild with an invite code.voidOpens the overlay and shows a widget to adjust the user's application specific voice settings.voidopenVoiceSettings(Consumer<Result> callback) Opens the overlay and shows a widget to adjust the user's application specific voice settings.voidsetLocked(boolean locked) Changes the locked status of the overlay.voidChanges the locked status of the overlay.
-
Method Details
-
isEnabled
public boolean isEnabled()Checks if the overlay is enabled by the user.
- Returns:
trueif the overlay is enabled- See Also:
-
isLocked
public boolean isLocked()Checks if the overlay is locked.
- Returns:
trueif the overlay is locked- See Also:
-
setLocked
public void setLocked(boolean locked) Changes the locked status of the overlay.
The
Core.DEFAULT_CALLBACKis used to handle the returnedResult.- Parameters:
locked- New locked status- See Also:
-
setLocked
Changes the locked status of the overlay.
A custom callback is used to handle the returned
Result.- Parameters:
locked- New locked statuscallback- Callback to process the returnedResult.- See Also:
-
openActivityInvite
Opens the overlay and prepares a join/spectate invitation to send.
The
Core.DEFAULT_CALLBACKis used to handle the returnedResult.- Parameters:
type- Type of the invitation- See Also:
-
openActivityInvite
Opens the overlay and prepares a join/spectate invitation to send.
A custom callback is used to handle the returned
Result.- Parameters:
type- Type of the invitationcallback- Callback to process the returnedResult.- See Also:
-
openGuildInvite
Opens the overlay and attempts to join a guild with an invite code.
The
Core.DEFAULT_CALLBACKis used to handle the returnedResult.- Parameters:
code- Invite code for a guild- See Also:
-
openGuildInvite
Opens the overlay and attempts to join a guild with an invite code.
A custom callback is used to handle the returned
Result.- Parameters:
code- Invite code for a guildcallback- Callback to process the returnedResult.- See Also:
-
openVoiceSettings
public void openVoiceSettings()Opens the overlay and shows a widget to adjust the user's application specific voice settings.
The
Core.DEFAULT_CALLBACKis used to handle the returnedResult.- See Also:
-
openVoiceSettings
Opens the overlay and shows a widget to adjust the user's application specific voice settings.
A custom callback is used to handle the returned
Result.- Parameters:
callback- Callback to process the returnedResult.- See Also:
-