Ejemplo n.º 1
0
        /// <summary>
        /// Hides the active overlay.
        /// </summary>
        /// <param name="options">Structure containing the account id of the browser to close.</param>
        /// <param name="clientData">Arbitrary data that is passed back to you in the CompletionDelegate.</param>
        /// <param name="completionDelegate">A callback that is fired when the request to hide the friends list has been processed, or on an error.</param>
        /// <returns>
        /// <see cref="Result.Success" /> If the overlay has been notified about the request.
        /// <see cref="Result.InvalidParameters" /> If any of the options are incorrect.
        /// <see cref="Result.NotConfigured" /> If the overlay is not properly configured.
        /// <see cref="Result.NoChange" /> If the overlay is already hidden.
        /// </returns>
        public void HideFriends(HideFriendsOptions options, object clientData, OnHideFriendsCallback completionDelegate)
        {
            var optionsInternal = Helper.CopyProperties <HideFriendsOptionsInternal>(options);

            var completionDelegateInternal = new OnHideFriendsCallbackInternal(OnHideFriends);
            var clientDataAddress          = IntPtr.Zero;

            Helper.AddCallback(ref clientDataAddress, clientData, completionDelegate, completionDelegateInternal);

            EOS_UI_HideFriends(InnerHandle, ref optionsInternal, clientDataAddress, completionDelegateInternal);
            Helper.TryMarshalDispose(ref optionsInternal);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Hides the active Social Overlay.
        /// </summary>
        /// <param name="options">Structure containing the Epic Online Services Account ID of the browser to close.</param>
        /// <param name="clientData">Arbitrary data that is passed back to you in the CompletionDelegate.</param>
        /// <param name="completionDelegate">A callback that is fired when the request to hide the friends list has been processed, or on an error.</param>
        /// <returns>
        /// <see cref="Result.Success" /> If the Social Overlay has been notified about the request.
        /// <see cref="Result.InvalidParameters" /> If any of the options are incorrect.
        /// <see cref="Result.NotConfigured" /> If the Social Overlay is not properly configured.
        /// <see cref="Result.NoChange" /> If the Social Overlay is already hidden.
        /// </returns>
        public void HideFriends(HideFriendsOptions options, object clientData, OnHideFriendsCallback completionDelegate)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <HideFriendsOptionsInternal, HideFriendsOptions>(ref optionsAddress, options);

            var clientDataAddress = System.IntPtr.Zero;

            var completionDelegateInternal = new OnHideFriendsCallbackInternal(OnHideFriendsCallbackInternalImplementation);

            Helper.AddCallback(ref clientDataAddress, clientData, completionDelegate, completionDelegateInternal);

            EOS_UI_HideFriends(InnerHandle, optionsAddress, clientDataAddress, completionDelegateInternal);

            Helper.TryMarshalDispose(ref optionsAddress);
        }
Ejemplo n.º 3
0
 internal static extern void EOS_UI_HideFriends(System.IntPtr handle, System.IntPtr options, System.IntPtr clientData, OnHideFriendsCallbackInternal completionDelegate);
Ejemplo n.º 4
0
 private static extern void EOS_UI_HideFriends(IntPtr handle, ref HideFriendsOptionsInternal options, IntPtr clientData, OnHideFriendsCallbackInternal completionDelegate);