Class OverlayManager
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if the overlay is enabled by the user.boolean
isLocked()
Checks if the overlay is locked.void
Opens the overlay and prepares a join/spectate invitation to send.void
openActivityInvite
(ActivityActionType type, Consumer<Result> callback) Opens the overlay and prepares a join/spectate invitation to send.void
openGuildInvite
(String code) Opens the overlay and attempts to join a guild with an invite code.void
openGuildInvite
(String code, Consumer<Result> callback) Opens the overlay and attempts to join a guild with an invite code.void
Opens the overlay and shows a widget to adjust the user's application specific voice settings.void
openVoiceSettings
(Consumer<Result> callback) Opens the overlay and shows a widget to adjust the user's application specific voice settings.void
setLocked
(boolean locked) Changes the locked status of the overlay.void
Changes the locked status of the overlay.
-
Method Details
-
isEnabled
public boolean isEnabled()Checks if the overlay is enabled by the user.
- Returns:
true
if the overlay is enabled- See Also:
-
isLocked
public boolean isLocked()Checks if the overlay is locked.
- Returns:
true
if the overlay is locked- See Also:
-
setLocked
public void setLocked(boolean locked) Changes the locked status of the overlay.
The
Core.DEFAULT_CALLBACK
is 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_CALLBACK
is 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_CALLBACK
is 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_CALLBACK
is 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:
-