// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.UI { public sealed partial class UIInterface : Handle { public UIInterface() { } public UIInterface(System.IntPtr innerHandle) : base(innerHandle) { } /// /// DEPRECATED! Use instead. /// public const int AcknowledgecorrelationidApiLatest = AcknowledgeeventidApiLatest; /// /// The most recent version of the API. /// public const int AcknowledgeeventidApiLatest = 1; /// /// The most recent version of the API. /// public const int AddnotifydisplaysettingsupdatedApiLatest = 1; /// /// ID representing a specific UI event. /// public const int EventidInvalid = 0; /// /// The most recent version of the API. /// public const int GetfriendsexclusiveinputApiLatest = 1; /// /// The most recent version of the API. /// public const int GetfriendsvisibleApiLatest = 1; /// /// The most recent version of the API. /// public const int GettogglefriendskeyApiLatest = 1; /// /// The most recent version of the API. /// public const int HidefriendsApiLatest = 1; /// /// The most recent version of the API. /// public const int IssocialoverlaypausedApiLatest = 1; /// /// The most recent version of the API. /// public const int PausesocialoverlayApiLatest = 1; /// /// The most recent version of the EOS_UI_PrePresent API. /// public const int PrepresentApiLatest = 1; /// /// The most recent version of the EOS_UI_ReportKeyEvent API. /// public const int ReportkeyeventApiLatest = 1; /// /// The most recent version of the API. /// public const int SetdisplaypreferenceApiLatest = 1; /// /// The most recent version of the API. /// public const int SettogglefriendskeyApiLatest = 1; /// /// The most recent version of the API. /// public const int ShowblockplayerApiLatest = 1; /// /// The most recent version of the API. /// public const int ShowfriendsApiLatest = 1; /// /// The most recent version of the API. /// public const int ShowreportplayerApiLatest = 1; /// /// Lets the SDK know that the given UI event ID has been acknowledged and should be released. /// /// /// /// An is returned to indicate success or an error. /// is returned if the UI event ID has been acknowledged. /// is returned if the UI event ID does not exist. /// public Result AcknowledgeEventId(ref AcknowledgeEventIdOptions options) { AcknowledgeEventIdOptionsInternal optionsInternal = new AcknowledgeEventIdOptionsInternal(); optionsInternal.Set(ref options); var funcResult = Bindings.EOS_UI_AcknowledgeEventId(InnerHandle, ref optionsInternal); Helper.Dispose(ref optionsInternal); return funcResult; } /// /// 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 call RemoveNotifyDisplaySettingsUpdated to remove the notification. /// /// Structure containing information about the request. /// Arbitrary data that is passed back to you in the NotificationFn. /// A callback that is fired when the overlay display settings are updated. /// /// handle representing the registered callback /// public ulong AddNotifyDisplaySettingsUpdated(ref AddNotifyDisplaySettingsUpdatedOptions options, object clientData, OnDisplaySettingsUpdatedCallback notificationFn) { AddNotifyDisplaySettingsUpdatedOptionsInternal optionsInternal = new AddNotifyDisplaySettingsUpdatedOptionsInternal(); optionsInternal.Set(ref options); var clientDataAddress = System.IntPtr.Zero; var notificationFnInternal = new OnDisplaySettingsUpdatedCallbackInternal(OnDisplaySettingsUpdatedCallbackInternalImplementation); Helper.AddCallback(out clientDataAddress, clientData, notificationFn, notificationFnInternal); var funcResult = Bindings.EOS_UI_AddNotifyDisplaySettingsUpdated(InnerHandle, ref optionsInternal, clientDataAddress, notificationFnInternal); Helper.Dispose(ref optionsInternal); Helper.AssignNotificationIdToCallback(clientDataAddress, funcResult); return funcResult; } /// /// Gets the friends overlay exclusive input state. /// /// Structure containing the Epic Account ID of the friends Social Overlay owner. /// /// If the overlay has exclusive input. /// public bool GetFriendsExclusiveInput(ref GetFriendsExclusiveInputOptions options) { GetFriendsExclusiveInputOptionsInternal optionsInternal = new GetFriendsExclusiveInputOptionsInternal(); optionsInternal.Set(ref options); var funcResult = Bindings.EOS_UI_GetFriendsExclusiveInput(InnerHandle, ref optionsInternal); Helper.Dispose(ref optionsInternal); bool funcResultReturn; Helper.Get(funcResult, out funcResultReturn); return funcResultReturn; } /// /// Gets the friends overlay visibility. /// /// Structure containing the Epic Account ID of the friends Social Overlay owner. /// /// If the overlay is visible. /// public bool GetFriendsVisible(ref GetFriendsVisibleOptions options) { GetFriendsVisibleOptionsInternal optionsInternal = new GetFriendsVisibleOptionsInternal(); optionsInternal.Set(ref options); var funcResult = Bindings.EOS_UI_GetFriendsVisible(InnerHandle, ref optionsInternal); Helper.Dispose(ref optionsInternal); bool funcResultReturn; Helper.Get(funcResult, out funcResultReturn); return funcResultReturn; } /// /// Returns the current notification location display preference. /// /// /// The current notification location display preference. /// public NotificationLocation GetNotificationLocationPreference() { var funcResult = Bindings.EOS_UI_GetNotificationLocationPreference(InnerHandle); return funcResult; } /// /// 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 `(() | ())`. /// /// Structure containing any options that are needed to retrieve the key. /// /// A valid key combination which represent a single key with zero or more modifier keys. /// will be returned if any error occurs. /// public KeyCombination GetToggleFriendsKey(ref GetToggleFriendsKeyOptions options) { GetToggleFriendsKeyOptionsInternal optionsInternal = new GetToggleFriendsKeyOptionsInternal(); optionsInternal.Set(ref options); var funcResult = Bindings.EOS_UI_GetToggleFriendsKey(InnerHandle, ref optionsInternal); Helper.Dispose(ref optionsInternal); return funcResult; } /// /// Hides the active Social Overlay. /// /// Structure containing the Epic Account ID of the browser to close. /// Arbitrary data that is passed back to you in the CompletionDelegate. /// A callback that is fired when the request to hide the friends list has been processed, or on an error. /// /// If the Social Overlay has been notified about the request. /// if the API version passed in is incorrect. /// If any of the options are incorrect. /// If the Social Overlay is not properly configured. /// If the Social Overlay is already hidden. /// public void HideFriends(ref HideFriendsOptions options, object clientData, OnHideFriendsCallback completionDelegate) { HideFriendsOptionsInternal optionsInternal = new HideFriendsOptionsInternal(); optionsInternal.Set(ref options); var clientDataAddress = System.IntPtr.Zero; var completionDelegateInternal = new OnHideFriendsCallbackInternal(OnHideFriendsCallbackInternalImplementation); Helper.AddCallback(out clientDataAddress, clientData, completionDelegate, completionDelegateInternal); Bindings.EOS_UI_HideFriends(InnerHandle, ref optionsInternal, clientDataAddress, completionDelegateInternal); Helper.Dispose(ref optionsInternal); } /// /// Gets the bIsPaused state of the overlay as set by any previous calls to (). /// /// /// /// If the overlay is paused. /// public bool IsSocialOverlayPaused(ref IsSocialOverlayPausedOptions options) { IsSocialOverlayPausedOptionsInternal optionsInternal = new IsSocialOverlayPausedOptionsInternal(); optionsInternal.Set(ref options); var funcResult = Bindings.EOS_UI_IsSocialOverlayPaused(InnerHandle, ref optionsInternal); Helper.Dispose(ref optionsInternal); bool funcResultReturn; Helper.Get(funcResult, out funcResultReturn); return funcResultReturn; } /// /// 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. /// /// The key to test. /// /// if the provided key combination is valid. /// public bool IsValidKeyCombination(KeyCombination keyCombination) { var funcResult = Bindings.EOS_UI_IsValidKeyCombination(InnerHandle, keyCombination); bool funcResultReturn; Helper.Get(funcResult, out funcResultReturn); return funcResultReturn; } /// /// Sets the bIsPaused state of the overlay. /// While true then all notifications will be delayed until after the bIsPaused 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. /// /// /// If the overlay has been notified about the request. /// if the API version passed in is incorrect. /// If any of the options are incorrect. /// If the overlay is not properly configured. /// public Result PauseSocialOverlay(ref PauseSocialOverlayOptions options) { PauseSocialOverlayOptionsInternal optionsInternal = new PauseSocialOverlayOptionsInternal(); optionsInternal.Set(ref options); var funcResult = Bindings.EOS_UI_PauseSocialOverlay(InnerHandle, ref optionsInternal); Helper.Dispose(ref optionsInternal); return funcResult; } /// /// Unregister from receiving notifications when the overlay display settings are updated. /// /// Handle representing the registered callback public void RemoveNotifyDisplaySettingsUpdated(ulong id) { Bindings.EOS_UI_RemoveNotifyDisplaySettingsUpdated(InnerHandle, id); Helper.RemoveCallbackByNotificationId(id); } /// /// Define any preferences for any display settings. /// /// Structure containing any options that are needed to set /// /// If the overlay has been notified about the request. /// if the API version passed in is incorrect. /// If any of the options are incorrect. /// If the overlay is not properly configured. /// If the preferences did not change. /// public Result SetDisplayPreference(ref SetDisplayPreferenceOptions options) { SetDisplayPreferenceOptionsInternal optionsInternal = new SetDisplayPreferenceOptionsInternal(); optionsInternal.Set(ref options); var funcResult = Bindings.EOS_UI_SetDisplayPreference(InnerHandle, ref optionsInternal); Helper.Dispose(ref optionsInternal); return funcResult; } /// /// 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 `(() | ())`. /// The provided key should satisfy . The value is specially handled /// by resetting the key binding to the system default. /// /// /// Structure containing the key combination to use. /// /// If the overlay has been notified about the request. /// if the API version passed in is incorrect. /// If any of the options are incorrect. /// If the overlay is not properly configured. /// If the key combination did not change. /// public Result SetToggleFriendsKey(ref SetToggleFriendsKeyOptions options) { SetToggleFriendsKeyOptionsInternal optionsInternal = new SetToggleFriendsKeyOptionsInternal(); optionsInternal.Set(ref options); var funcResult = Bindings.EOS_UI_SetToggleFriendsKey(InnerHandle, ref optionsInternal); Helper.Dispose(ref optionsInternal); return funcResult; } /// /// Requests that the Social Overlay open and display the "Block User" flow for the specified user. /// /// Arbitrary data that is passed back to you in the NotificationFn. /// A callback that is fired when the user exits the Block UI. public void ShowBlockPlayer(ref ShowBlockPlayerOptions options, object clientData, OnShowBlockPlayerCallback completionDelegate) { ShowBlockPlayerOptionsInternal optionsInternal = new ShowBlockPlayerOptionsInternal(); optionsInternal.Set(ref options); var clientDataAddress = System.IntPtr.Zero; var completionDelegateInternal = new OnShowBlockPlayerCallbackInternal(OnShowBlockPlayerCallbackInternalImplementation); Helper.AddCallback(out clientDataAddress, clientData, completionDelegate, completionDelegateInternal); Bindings.EOS_UI_ShowBlockPlayer(InnerHandle, ref optionsInternal, clientDataAddress, completionDelegateInternal); Helper.Dispose(ref optionsInternal); } /// /// Opens the Social Overlay with a request to show the friends list. /// /// Structure containing the Epic Account ID of the friends list to show. /// Arbitrary data that is passed back to you in the 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. /// /// If the Social Overlay has been notified about the request. /// if the API version passed in is incorrect. /// If any of the options are incorrect. /// If the Social Overlay is not properly configured. /// If the Social Overlay is already visible. /// If the application is suspended. /// If the network is disconnected. /// public void ShowFriends(ref ShowFriendsOptions options, object clientData, OnShowFriendsCallback completionDelegate) { ShowFriendsOptionsInternal optionsInternal = new ShowFriendsOptionsInternal(); optionsInternal.Set(ref options); var clientDataAddress = System.IntPtr.Zero; var completionDelegateInternal = new OnShowFriendsCallbackInternal(OnShowFriendsCallbackInternalImplementation); Helper.AddCallback(out clientDataAddress, clientData, completionDelegate, completionDelegateInternal); Bindings.EOS_UI_ShowFriends(InnerHandle, ref optionsInternal, clientDataAddress, completionDelegateInternal); Helper.Dispose(ref optionsInternal); } /// /// Requests that the Social Overlay open and display the "Report User" flow for the specified user. /// /// Arbitrary data that is passed back to you in the NotificationFn. /// A callback that is fired when the user exits the Report UI. public void ShowReportPlayer(ref ShowReportPlayerOptions options, object clientData, OnShowReportPlayerCallback completionDelegate) { ShowReportPlayerOptionsInternal optionsInternal = new ShowReportPlayerOptionsInternal(); optionsInternal.Set(ref options); var clientDataAddress = System.IntPtr.Zero; var completionDelegateInternal = new OnShowReportPlayerCallbackInternal(OnShowReportPlayerCallbackInternalImplementation); Helper.AddCallback(out clientDataAddress, clientData, completionDelegate, completionDelegateInternal); Bindings.EOS_UI_ShowReportPlayer(InnerHandle, ref optionsInternal, clientDataAddress, completionDelegateInternal); Helper.Dispose(ref optionsInternal); } [MonoPInvokeCallback(typeof(OnDisplaySettingsUpdatedCallbackInternal))] internal static void OnDisplaySettingsUpdatedCallbackInternalImplementation(ref OnDisplaySettingsUpdatedCallbackInfoInternal data) { OnDisplaySettingsUpdatedCallback callback; OnDisplaySettingsUpdatedCallbackInfo callbackInfo; if (Helper.TryGetAndRemoveCallback(ref data, out callback, out callbackInfo)) { callback(ref callbackInfo); } } [MonoPInvokeCallback(typeof(OnHideFriendsCallbackInternal))] internal static void OnHideFriendsCallbackInternalImplementation(ref HideFriendsCallbackInfoInternal data) { OnHideFriendsCallback callback; HideFriendsCallbackInfo callbackInfo; if (Helper.TryGetAndRemoveCallback(ref data, out callback, out callbackInfo)) { callback(ref callbackInfo); } } [MonoPInvokeCallback(typeof(OnShowBlockPlayerCallbackInternal))] internal static void OnShowBlockPlayerCallbackInternalImplementation(ref OnShowBlockPlayerCallbackInfoInternal data) { OnShowBlockPlayerCallback callback; OnShowBlockPlayerCallbackInfo callbackInfo; if (Helper.TryGetAndRemoveCallback(ref data, out callback, out callbackInfo)) { callback(ref callbackInfo); } } [MonoPInvokeCallback(typeof(OnShowFriendsCallbackInternal))] internal static void OnShowFriendsCallbackInternalImplementation(ref ShowFriendsCallbackInfoInternal data) { OnShowFriendsCallback callback; ShowFriendsCallbackInfo callbackInfo; if (Helper.TryGetAndRemoveCallback(ref data, out callback, out callbackInfo)) { callback(ref callbackInfo); } } [MonoPInvokeCallback(typeof(OnShowReportPlayerCallbackInternal))] internal static void OnShowReportPlayerCallbackInternalImplementation(ref OnShowReportPlayerCallbackInfoInternal data) { OnShowReportPlayerCallback callback; OnShowReportPlayerCallbackInfo callbackInfo; if (Helper.TryGetAndRemoveCallback(ref data, out callback, out callbackInfo)) { callback(ref callbackInfo); } } } }