Ejemplo n.º 1
0
        internal static void OnHideFriends(IntPtr address)
        {
            OnHideFriendsCallback   callback     = null;
            HideFriendsCallbackInfo callbackInfo = null;

            if (Helper.TryGetAndRemoveCallback <OnHideFriendsCallback, HideFriendsCallbackInfoInternal, HideFriendsCallbackInfo>(address, out callback, out callbackInfo))
            {
                callback(callbackInfo);
            }
        }
Ejemplo n.º 2
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.º 3
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);
        }