public void Set(HideFriendsOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = UIInterface.HidefriendsApiLatest;
         LocalUserId  = other.LocalUserId;
     }
 }
예제 #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);
        }