Example #1
0
        /// <summary>
        /// Query the file metadata, such as file names, size, and a MD5 hash of the data, for all files owned by this user for this application. This is not required before a file may be opened,
        /// saved, copied, or deleted.
        /// <seealso cref="GetFileMetadataCount" />
        /// <seealso cref="CopyFileMetadataAtIndex" />
        /// <seealso cref="CopyFileMetadataByFilename" />
        /// </summary>
        /// <param name="options">Object containing properties related to which user is querying files</param>
        /// <param name="clientData">Optional pointer to help clients track this request, that is returned in the completion callback</param>
        /// <param name="completionCallback">This function is called when the query operation completes</param>
        public void QueryFileList(QueryFileListOptions queryFileListOptions, object clientData, OnQueryFileListCompleteCallback completionCallback)
        {
            var queryFileListOptionsInternal = Helper.CopyProperties <QueryFileListOptionsInternal>(queryFileListOptions);

            var completionCallbackInternal = new OnQueryFileListCompleteCallbackInternal(OnQueryFileListComplete);
            var clientDataAddress          = IntPtr.Zero;

            Helper.AddCallback(ref clientDataAddress, clientData, completionCallback, completionCallbackInternal);

            EOS_PlayerDataStorage_QueryFileList(InnerHandle, ref queryFileListOptionsInternal, clientDataAddress, completionCallbackInternal);
            Helper.TryMarshalDispose(ref queryFileListOptionsInternal);
        }
        /// <summary>
        /// Query the file metadata, such as file names, size, and a MD5 hash of the data, for all files owned by this user for this application. This is not required before a file may be opened,
        /// saved, copied, or deleted.
        /// <seealso cref="GetFileMetadataCount" />
        /// <seealso cref="CopyFileMetadataAtIndex" />
        /// <seealso cref="CopyFileMetadataByFilename" />
        /// </summary>
        /// <param name="queryFileListOptions">Object containing properties related to which user is querying files</param>
        /// <param name="clientData">Optional pointer to help clients track this request, that is returned in the completion callback</param>
        /// <param name="completionCallback">This function is called when the query operation completes</param>
        public void QueryFileList(QueryFileListOptions queryFileListOptions, object clientData, OnQueryFileListCompleteCallback completionCallback)
        {
            System.IntPtr queryFileListOptionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <QueryFileListOptionsInternal, QueryFileListOptions>(ref queryFileListOptionsAddress, queryFileListOptions);

            var clientDataAddress = System.IntPtr.Zero;

            var completionCallbackInternal = new OnQueryFileListCompleteCallbackInternal(OnQueryFileListCompleteCallbackInternalImplementation);

            Helper.AddCallback(ref clientDataAddress, clientData, completionCallback, completionCallbackInternal);

            EOS_PlayerDataStorage_QueryFileList(InnerHandle, queryFileListOptionsAddress, clientDataAddress, completionCallbackInternal);

            Helper.TryMarshalDispose(ref queryFileListOptionsAddress);
        }
 internal static extern void EOS_PlayerDataStorage_QueryFileList(System.IntPtr handle, System.IntPtr queryFileListOptions, System.IntPtr clientData, OnQueryFileListCompleteCallbackInternal completionCallback);
Example #4
0
 private static extern void EOS_PlayerDataStorage_QueryFileList(IntPtr handle, ref QueryFileListOptionsInternal queryFileListOptions, IntPtr clientData, OnQueryFileListCompleteCallbackInternal completionCallback);