public class EOS_UI_Interface
extends com.sun.jna.PointerType
EOS_Platform_Interface.getUIInterface()| Constructor and Description |
|---|
EOS_UI_Interface() |
EOS_UI_Interface(com.sun.jna.Pointer address) |
| Modifier and Type | Method and Description |
|---|---|
EOS_EResult |
acknowledgeEventId(EOS_UI_AcknowledgeEventIdOptions options)
Lets the SDK know that the given UI event ID has been acknowledged and should be released.
|
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.
|
EOS_NotificationId |
addNotifyMemoryMonitor(EOS_UI_AddNotifyMemoryMonitorOptions options,
com.sun.jna.Pointer clientData,
EOS_UI_OnMemoryMonitorCallback completionDelegate)
Register to receive notifications from the memory monitor.
|
boolean |
getFriendsExclusiveInput(EOS_UI_GetFriendsExclusiveInputOptions options)
Gets the friends overlay exclusive input state.
|
boolean |
getFriendsVisible(EOS_UI_GetFriendsVisibleOptions options)
Gets the friends overlay visibility.
|
EOS_UI_ENotificationLocation |
getNotificationLocationPreference()
Returns the current notification location display preference.
|
EOS_UI_EInputStateButtonFlags |
getToggleFriendsButton(EOS_UI_GetToggleFriendsButtonOptions options)
Returns the current Toggle Friends Button.
|
EOS_UI_EKeyCombination |
getToggleFriendsKey(EOS_UI_GetToggleFriendsKeyOptions options)
Returns the current Toggle Friends Key.
|
void |
hideFriends(EOS_UI_HideFriendsOptions options,
com.sun.jna.Pointer clientData,
EOS_UI_OnHideFriendsCallback completionDelegate)
Hides the active Social Overlay.
|
boolean |
isSocialOverlayPaused(EOS_UI_IsSocialOverlayPausedOptions options)
Gets the IsPaused state of the overlay as set by any previous calls to EOS_UI_PauseSocialOverlay().
|
boolean |
isValidButtonCombination(EOS_UI_EInputStateButtonFlags buttonCombination)
Determine if a button combination is valid.
|
boolean |
isValidKeyCombination(EOS_UI_EKeyCombination keyCombination)
Determine if a key combination is valid.
|
EOS_EResult |
pauseSocialOverlay(EOS_UI_PauseSocialOverlayOptions options)
Sets the IsPaused state of the overlay.
|
EOS_EResult |
prePresent(EOS_UI_PrePresentOptions options)
Gives the Overlay the chance to issue its own drawing commands on console platforms.
|
void |
removeNotifyDisplaySettingsUpdated(EOS_NotificationId id)
Unregister from receiving notifications when the overlay display settings are updated.
|
void |
removeNotifyMemoryMonitor(EOS_NotificationId id)
Unregister from receiving notifications when the memory monitor posts a notification.
|
EOS_EResult |
reportInputState(EOS_UI_ReportInputStateOptions options)
Pushes platform agnostic input state to the SDK.
|
EOS_EResult |
setDisplayPreference(EOS_UI_SetDisplayPreferenceOptions options)
Define any preferences for any display settings.
|
EOS_EResult |
setToggleFriendsButton(EOS_UI_SetToggleFriendsButtonOptions options)
Updates the current Toggle Friends Button.
|
EOS_EResult |
setToggleFriendsKey(EOS_UI_SetToggleFriendsKeyOptions options)
Updates the current Toggle Friends Key.
|
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.
|
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.
|
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.
|
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.
|
public EOS_UI_Interface(com.sun.jna.Pointer address)
public EOS_UI_Interface()
public void showFriends(EOS_UI_ShowFriendsOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnShowFriendsCallback completionDelegate)
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.public void hideFriends(EOS_UI_HideFriendsOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnHideFriendsCallback completionDelegate)
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.public boolean getFriendsVisible(EOS_UI_GetFriendsVisibleOptions options)
options - Structure containing the Epic Account ID of the friends Social Overlay owner.true If the overlay is visible.public boolean getFriendsExclusiveInput(EOS_UI_GetFriendsExclusiveInputOptions options)
options - Structure containing the Epic Account ID of the friends Social Overlay owner.true If the overlay has exclusive input.public EOS_NotificationId addNotifyDisplaySettingsUpdated(EOS_UI_AddNotifyDisplaySettingsUpdatedOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnDisplaySettingsUpdatedCallback completionDelegate)
removeNotifyDisplaySettingsUpdated(EOS_NotificationId) to remove the notification.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.public void removeNotifyDisplaySettingsUpdated(EOS_NotificationId id)
id - Handle representing the registered callbackpublic EOS_EResult setToggleFriendsKey(EOS_UI_SetToggleFriendsKeyOptions options)
options - Structure containing the key combination to use.EOS_EResult.EOS_Success If the overlay has been notified about the request.EOS_EResult.EOS_IncompatibleVersion if the API version passed in is incorrect.EOS_EResult.EOS_InvalidParameters If any of the options are incorrect.EOS_EResult.EOS_NotConfigured If the overlay is not properly configured.EOS_EResult.EOS_NoChange If the key combination did not change.isValidKeyCombination(EOS_UI_EKeyCombination)public EOS_UI_EKeyCombination getToggleFriendsKey(EOS_UI_GetToggleFriendsKeyOptions options)
options - Structure containing any options that are needed to retrieve the key.EOS_UI_EKeyCombinationpublic boolean isValidKeyCombination(EOS_UI_EKeyCombination keyCombination)
keyCombination - The key to test.true if the provided key combination is valid.public EOS_EResult setToggleFriendsButton(EOS_UI_SetToggleFriendsButtonOptions options)
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.
Note: If you do not have a button mapped, it'll suppress the part of the toast notification that prompts the user to press it.
options - Structure containing the button combination to use.EOS_EResult.EOS_Success If the overlay has been notified about the request.EOS_EResult.EOS_IncompatibleVersion if the API version passed in is incorrect.EOS_EResult.EOS_InvalidParameters If any of the options are incorrect.EOS_EResult.EOS_NotConfigured If the overlay is not properly configured.EOS_EResult.EOS_NoChange If the button combination did not change.isValidKeyCombination(EOS_UI_EKeyCombination),
reportInputState(EOS_UI_ReportInputStateOptions)public EOS_UI_EInputStateButtonFlags getToggleFriendsButton(EOS_UI_GetToggleFriendsButtonOptions options)
options - Structure containing any options that are needed to retrieve the button.EOS_UI_EInputStateButtonFlags.EOS_UISBF_None will be returned if any error occurs.public boolean isValidButtonCombination(EOS_UI_EInputStateButtonFlags buttonCombination)
buttonCombination - The button to test.true if the provided button combination is valid.EOS_UI_EInputStateButtonFlagspublic EOS_EResult setDisplayPreference(EOS_UI_SetDisplayPreferenceOptions options)
options - Structure containing any options that are needed to setEOS_EResult.EOS_Success If the overlay has been notified about the request.EOS_EResult.EOS_IncompatibleVersion if the API version passed in is incorrect.EOS_EResult.EOS_InvalidParameters If any of the options are incorrect.EOS_EResult.EOS_NotConfigured If the overlay is not properly configured.EOS_EResult.EOS_NoChange If the preferences did not change.public EOS_UI_ENotificationLocation getNotificationLocationPreference()
public EOS_EResult acknowledgeEventId(EOS_UI_AcknowledgeEventIdOptions options)
options - Structure containing the UI event ID to acknowledge.EOS_EResult.EOS_Success is returned if the UI event ID has been acknowledged.EOS_EResult.EOS_NotFound is returned if the UI event ID does not exist.EOS_Presence_JoinGameAcceptedCallbackInfopublic EOS_EResult reportInputState(EOS_UI_ReportInputStateOptions options)
options - Structure containing the input stateEOS_EResult.EOS_Success If the Social Overlay has been notified about the request.EOS_EResult.EOS_IncompatibleVersion if the API version passed in is incorrect.EOS_EResult.EOS_NotConfigured If the Social Overlay is not properly configured.EOS_EResult.EOS_NotImplementedx If the application is suspended.EOS_EResult.EOS_NotImplemented If this function is not implemented on the current platform.public EOS_EResult prePresent(EOS_UI_PrePresentOptions options)
options - will vary from platform to platform.
Main difference will be due to a platforms ability to provide multiple rendering queues.public void showBlockPlayer(EOS_UI_ShowBlockPlayerOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnShowBlockPlayerCallback completionDelegate)
options - Structure containing information about the user to be blocked.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.public void showReportPlayer(EOS_UI_ShowReportPlayerOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnShowReportPlayerCallback completionDelegate)
options - Structure containing information about the user to be reported.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.public EOS_EResult pauseSocialOverlay(EOS_UI_PauseSocialOverlayOptions options)
options - Structure containing the desired IsPaused state.EOS_EResult.EOS_Success If the overlay has been notified about the request.EOS_EResult.EOS_IncompatibleVersion if the API version passed in is incorrect.EOS_EResult.EOS_InvalidParameters If any of the options are incorrect.EOS_EResult.EOS_NotConfigured If the overlay is not properly configured.public boolean isSocialOverlayPaused(EOS_UI_IsSocialOverlayPausedOptions options)
options - Structure containing any options that are needed to retrieve the IsPaused state.true If the overlay is paused.pauseSocialOverlay(EOS_UI_PauseSocialOverlayOptions)public EOS_NotificationId addNotifyMemoryMonitor(EOS_UI_AddNotifyMemoryMonitorOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnMemoryMonitorCallback completionDelegate)
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.public void removeNotifyMemoryMonitor(EOS_NotificationId id)
id - Handle representing the registered callbackpublic void showNativeProfile(EOS_UI_ShowNativeProfileOptions options, com.sun.jna.Pointer clientData, EOS_UI_OnShowNativeProfileCallback completionDelegate)
options - Structure containing information about the user whose profile is to be shown.clientData - Arbitrary data that is passed back to you in the notificationFn.completionDelegate - A callback that is fired when the profile has been shown.