Package host.anzo.eossdk.eos.sdk
Class EOS_UI_Interface
java.lang.Object
com.sun.jna.PointerType
host.anzo.eossdk.eos.sdk.EOS_UI_Interface
- All Implemented Interfaces:
com.sun.jna.NativeMapped
public class EOS_UI_Interface
extends com.sun.jna.PointerType
The UI Interface is used to access the Social Overlay UI. Each UI component will have a function for
opening it. All UI Interface calls take a handle of type EOS_HUI as the first parameter.
This handle can be retrieved from an EOS_HPlatform handle by using the EOS_Platform_GetUIInterface function.
- Since:
- 9/7/2023
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLets the SDK know that the given UI event ID has been acknowledged and should be released.addNotifyDisplaySettingsUpdated(EOS_UI_AddNotifyDisplaySettingsUpdatedOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnDisplaySettingsUpdatedCallback completionDelegate) Register to receive notifications when the overlay display settings are updated.addNotifyMemoryMonitor(EOS_UI_AddNotifyMemoryMonitorOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnMemoryMonitorCallback completionDelegate) Register to receive notifications from the memory monitor.booleanGets the friends overlay exclusive input state.booleanGets the friends overlay visibility.Returns the current notification location display preference.Returns the current Toggle Friends Button.Returns the current Toggle Friends Key.voidhideFriends(EOS_UI_HideFriendsOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnHideFriendsCallback completionDelegate) Hides the active Social Overlay.booleanGets the IsPaused state of the overlay as set by any previous calls to EOS_UI_PauseSocialOverlay().booleanisValidButtonCombination(EOS_UI_EInputStateButtonFlags buttonCombination) Determine if a button combination is valid.booleanisValidKeyCombination(EOS_UI_EKeyCombination keyCombination) Determine if a key combination is valid.Sets the IsPaused state of the overlay.prePresent(EOS_UI_PrePresentOptions options) Gives the Overlay the chance to issue its own drawing commands on console platforms.voidUnregister from receiving notifications when the overlay display settings are updated.voidUnregister from receiving notifications when the memory monitor posts a notification.Pushes platform agnostic input state to the SDK.Define any preferences for any display settings.Updates the current Toggle Friends Button.Updates the current Toggle Friends Key.voidshowBlockPlayer(EOS_UI_ShowBlockPlayerOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnShowBlockPlayerCallback completionDelegate) Requests that the Social Overlay open and display the "Block User" flow for the specified user.voidshowFriends(EOS_UI_ShowFriendsOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnShowFriendsCallback completionDelegate) Opens the Social Overlay with a request to show the friends list.voidshowNativeProfile(EOS_UI_ShowNativeProfileOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnShowNativeProfileCallback completionDelegate) Requests that the native ID for a target player be identified and the native profile be displayed for that player.voidshowReportPlayer(EOS_UI_ShowReportPlayerOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnShowReportPlayerCallback completionDelegate) Requests that the Social Overlay open and display the "Report User" flow for the specified user.Methods inherited from class com.sun.jna.PointerType
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
-
Constructor Details
-
EOS_UI_Interface
public EOS_UI_Interface(com.sun.jna.Pointer address) -
EOS_UI_Interface
public EOS_UI_Interface()
-
-
Method Details
-
showFriends
public void showFriends(EOS_UI_ShowFriendsOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnShowFriendsCallback completionDelegate) Opens the Social Overlay with a request to show the friends list.- Parameters:
options- Structure containing the Epic Account ID of the friends list to show.clientData- Arbitrary data that is passed back to you in the completionDelegate.completionDelegate- A callback that is fired when the request to show the friends list has been sent to the Social Overlay, or on an error.
-
hideFriends
public void hideFriends(EOS_UI_HideFriendsOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnHideFriendsCallback completionDelegate) Hides the active Social Overlay.- Parameters:
options- Structure containing the Epic Account ID of the browser to close.clientData- Arbitrary data that is passed back to you in the completionDelegate.completionDelegate- A callback that is fired when the request to hide the friends list has been processed, or on an error.
-
getFriendsVisible
Gets the friends overlay visibility.- Parameters:
options- Structure containing the Epic Account ID of the friends Social Overlay owner.- Returns:
trueIf the overlay is visible.
-
getFriendsExclusiveInput
Gets the friends overlay exclusive input state.- Parameters:
options- Structure containing the Epic Account ID of the friends Social Overlay owner.- Returns:
trueIf the overlay has exclusive input.
-
addNotifyDisplaySettingsUpdated
public EOS_NotificationId addNotifyDisplaySettingsUpdated(EOS_UI_AddNotifyDisplaySettingsUpdatedOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnDisplaySettingsUpdatedCallback completionDelegate) Register to receive notifications when the overlay display settings are updated. Newly registered handlers will always be called the next tick with the current state.
Must callremoveNotifyDisplaySettingsUpdated(EOS_NotificationId)to remove the notification.- Parameters:
options- Structure containing information about the request.clientData- Arbitrary data that is passed back to you in the notificationFn.completionDelegate- A callback that is fired when the overlay display settings are updated.- Returns:
- handle representing the registered callback
-
removeNotifyDisplaySettingsUpdated
Unregister from receiving notifications when the overlay display settings are updated.- Parameters:
id- Handle representing the registered callback
-
setToggleFriendsKey
Updates the current Toggle Friends Key. This key can be used by the user to toggle the friends overlay when available. The default value represents `Shift + F3` as `((int32_t)EOS_UIK_Shift | (int32_t)EOS_UIK_F3)`. The provided key should satisfy EOS_UI_IsValidKeyCombination. The value EOS_UIK_None is specially handled by resetting the key binding to the system default.- Parameters:
options- Structure containing the key combination to use.- Returns:
EOS_EResult.EOS_SuccessIf the overlay has been notified about the request.
EOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect.
EOS_EResult.EOS_InvalidParametersIf any of the options are incorrect.
EOS_EResult.EOS_NotConfiguredIf the overlay is not properly configured.
EOS_EResult.EOS_NoChangeIf the key combination did not change.- See Also:
-
getToggleFriendsKey
Returns the current Toggle Friends Key. This key can be used by the user to toggle the friends overlay when available. The default value represents `Shift + F3` as `((int32_t)EOS_UIK_Shift | (int32_t)EOS_UIK_F3)`.- Parameters:
options- Structure containing any options that are needed to retrieve the key.- Returns:
- A valid key combination which represent a single key with zero or more modifier keys. EOS_UIK_None will be returned if any error occurs.
- See Also:
-
isValidKeyCombination
Determine if a key combination is valid. A key combinations must have a single key and at least one modifier. The single key must be one of the following: F1 through F12, Space, Backspace, Escape, or Tab. The modifier key must be one or more of the following: Shift, Control, or Alt.- Parameters:
keyCombination- The key to test.- Returns:
trueif the provided key combination is valid.
-
setToggleFriendsButton
Updates the current Toggle Friends Button. This button can be used by the user to toggle the friends overlay when available.The default value is EOS_UISBF_None. The provided button must satisfy EOS_UI_IsValidButtonCombination.
On PC the EOS Overlay automatically listens to gamepad input and routes it to the overlay when appropriate. If this button is configured, the user may open the overlay using either this button or the toggle friends key. On console platforms, the game must be calling EOS_UI_ReportInputState to route gamepad input to the EOS Overlay.
- Parameters:
options- Structure containing the button combination to use.- Returns:
EOS_EResult.EOS_SuccessIf the overlay has been notified about the request.
EOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect.
EOS_EResult.EOS_InvalidParametersIf any of the options are incorrect.
EOS_EResult.EOS_NotConfiguredIf the overlay is not properly configured.
EOS_EResult.EOS_NoChangeIf the button combination did not change.- See Also:
-
getToggleFriendsButton
public EOS_UI_EInputStateButtonFlags getToggleFriendsButton(EOS_UI_GetToggleFriendsButtonOptions options) Returns the current Toggle Friends Button. This button can be used by the user to toggle the friends overlay when available. The default value is EOS_UISBF_None.- Parameters:
options- Structure containing any options that are needed to retrieve the button.- Returns:
- A valid button combination which represents any number of buttons.
EOS_UI_EInputStateButtonFlags.EOS_UISBF_Nonewill be returned if any error occurs.
-
isValidButtonCombination
Determine if a button combination is valid.- Parameters:
buttonCombination- The button to test.- Returns:
trueif the provided button combination is valid.- See Also:
-
setDisplayPreference
Define any preferences for any display settings.- Parameters:
options- Structure containing any options that are needed to set- Returns:
EOS_EResult.EOS_SuccessIf the overlay has been notified about the request.
EOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect.
EOS_EResult.EOS_InvalidParametersIf any of the options are incorrect.
EOS_EResult.EOS_NotConfiguredIf the overlay is not properly configured.
EOS_EResult.EOS_NoChangeIf the preferences did not change.
-
getNotificationLocationPreference
Returns the current notification location display preference.- Returns:
- The current notification location display preference.
-
acknowledgeEventId
Lets the SDK know that the given UI event ID has been acknowledged and should be released.- Returns:
EOS_EResult.EOS_Successis returned if the UI event ID has been acknowledged.
EOS_EResult.EOS_NotFoundis returned if the UI event ID does not exist.- See Also:
-
reportInputState
Pushes platform agnostic input state to the SDK. The state is passed to the EOS Overlay on console platforms. This function has an empty implementation (i.e. returns EOS_NotImplemented) on all non-consoles platforms.- Parameters:
options- Structure containing the input state- Returns:
EOS_EResult.EOS_SuccessIf the Social Overlay has been notified about the request.
EOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect.
EOS_EResult.EOS_NotConfiguredIf the Social Overlay is not properly configured.
EOS_EResult.EOS_NotImplementedx If the application is suspended.
EOS_EResult.EOS_NotImplementedIf this function is not implemented on the current platform.
-
prePresent
Gives the Overlay the chance to issue its own drawing commands on console platforms. Issued by the hosting application after it has finished the backbuffer and is ready to trigger presenting it. As this process can be involved and rather varied depending on platform we do not plan to make the call replace the standard "present" call, but rather expect it to be issued "just before" that call. This function has an empty implementation (i.e. returns EOS_NotImplemented) on all non-consoles platforms.- Parameters:
options- will vary from platform to platform. Main difference will be due to a platforms ability to provide multiple rendering queues.- Returns:
- An EOS_EResult is returned to indicate success or an error.
-
showBlockPlayer
public void showBlockPlayer(EOS_UI_ShowBlockPlayerOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnShowBlockPlayerCallback completionDelegate) Requests that the Social Overlay open and display the "Block User" flow for the specified user.- Parameters:
clientData- Arbitrary data that is passed back to you in the notificationFn.completionDelegate- A callback that is fired when the user exits the Block UI.
-
showReportPlayer
public void showReportPlayer(EOS_UI_ShowReportPlayerOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnShowReportPlayerCallback completionDelegate) Requests that the Social Overlay open and display the "Report User" flow for the specified user.- Parameters:
clientData- Arbitrary data that is passed back to you in the notificationFn.completionDelegate- A callback that is fired when the user exits the Report UI.
-
pauseSocialOverlay
Sets the IsPaused state of the overlay. While true then all notifications will be delayed until after the IsPaused is false again. While true then the key and button events will not toggle the overlay. If the Overlay was visible before being paused then it will be hidden. If it is known that the Overlay should now be visible after being paused then it will be shown.- Returns:
EOS_EResult.EOS_SuccessIf the overlay has been notified about the request.
EOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect.
EOS_EResult.EOS_InvalidParametersIf any of the options are incorrect.
EOS_EResult.EOS_NotConfiguredIf the overlay is not properly configured.
-
isSocialOverlayPaused
Gets the IsPaused state of the overlay as set by any previous calls to EOS_UI_PauseSocialOverlay().- Returns:
trueIf the overlay is paused.- See Also:
-
addNotifyMemoryMonitor
public EOS_NotificationId addNotifyMemoryMonitor(EOS_UI_AddNotifyMemoryMonitorOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnMemoryMonitorCallback completionDelegate) Register to receive notifications from the memory monitor. Newly registered handlers will always be called the next tick with the current state.
Must callremoveNotifyMemoryMonitor(EOS_NotificationId)to remove the notification.- Parameters:
options- Structure containing information about the request.clientData- Arbitrary data that is passed back to you in the notificationFn.completionDelegate- A callback that is fired when the overlay display settings are updated.- Returns:
- handle representing the registered callback
-
removeNotifyMemoryMonitor
Unregister from receiving notifications when the memory monitor posts a notification.- Parameters:
id- Handle representing the registered callback
-
showNativeProfile
public void showNativeProfile(EOS_UI_ShowNativeProfileOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnShowNativeProfileCallback completionDelegate) Requests that the native ID for a target player be identified and the native profile be displayed for that player.- Parameters:
clientData- Arbitrary data that is passed back to you in the notificationFn.completionDelegate- A callback that is fired when the profile has been shown.
-