// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.Reports { public sealed partial class ReportsInterface : Handle { public ReportsInterface() { } public ReportsInterface(System.IntPtr innerHandle) : base(innerHandle) { } /// /// Max length of a report context JSON payload, not including the null terminator. /// public const int ReportcontextMaxLength = 4096; /// /// Max length of a report message text, not including the null terminator. /// public const int ReportmessageMaxLength = 512; /// /// The most recent version of the API. /// public const int SendplayerbehaviorreportApiLatest = 2; /// /// Sends the provided report directly to the Epic Online Services back-end. /// /// Structure containing the player report information. /// Optional client data provided by the user of the SDK. /// This function is called when the send operation completes. public void SendPlayerBehaviorReport(ref SendPlayerBehaviorReportOptions options, object clientData, OnSendPlayerBehaviorReportCompleteCallback completionDelegate) { SendPlayerBehaviorReportOptionsInternal optionsInternal = new SendPlayerBehaviorReportOptionsInternal(); optionsInternal.Set(ref options); var clientDataAddress = System.IntPtr.Zero; var completionDelegateInternal = new OnSendPlayerBehaviorReportCompleteCallbackInternal(OnSendPlayerBehaviorReportCompleteCallbackInternalImplementation); Helper.AddCallback(out clientDataAddress, clientData, completionDelegate, completionDelegateInternal); Bindings.EOS_Reports_SendPlayerBehaviorReport(InnerHandle, ref optionsInternal, clientDataAddress, completionDelegateInternal); Helper.Dispose(ref optionsInternal); } [MonoPInvokeCallback(typeof(OnSendPlayerBehaviorReportCompleteCallbackInternal))] internal static void OnSendPlayerBehaviorReportCompleteCallbackInternalImplementation(ref SendPlayerBehaviorReportCompleteCallbackInfoInternal data) { OnSendPlayerBehaviorReportCompleteCallback callback; SendPlayerBehaviorReportCompleteCallbackInfo callbackInfo; if (Helper.TryGetAndRemoveCallback(ref data, out callback, out callbackInfo)) { callback(ref callbackInfo); } } } }