You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
2.6 KiB
63 lines
2.6 KiB
// 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)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Max length of a report context JSON payload, not including the null terminator.
|
|
/// </summary>
|
|
public const int ReportcontextMaxLength = 4096;
|
|
|
|
/// <summary>
|
|
/// Max length of a report message text, not including the null terminator.
|
|
/// </summary>
|
|
public const int ReportmessageMaxLength = 512;
|
|
|
|
/// <summary>
|
|
/// The most recent version of the <see cref="SendPlayerBehaviorReport" /> API.
|
|
/// </summary>
|
|
public const int SendplayerbehaviorreportApiLatest = 2;
|
|
|
|
/// <summary>
|
|
/// Sends the provided report directly to the Epic Online Services back-end.
|
|
/// </summary>
|
|
/// <param name="options">Structure containing the player report information.</param>
|
|
/// <param name="clientData">Optional client data provided by the user of the SDK.</param>
|
|
/// <param name="completionDelegate">This function is called when the send operation completes.</param>
|
|
public void SendPlayerBehaviorReport(SendPlayerBehaviorReportOptions options, object clientData, OnSendPlayerBehaviorReportCompleteCallback completionDelegate)
|
|
{
|
|
var optionsAddress = System.IntPtr.Zero;
|
|
Helper.TryMarshalSet<SendPlayerBehaviorReportOptionsInternal, SendPlayerBehaviorReportOptions>(ref optionsAddress, options);
|
|
|
|
var clientDataAddress = System.IntPtr.Zero;
|
|
|
|
var completionDelegateInternal = new OnSendPlayerBehaviorReportCompleteCallbackInternal(OnSendPlayerBehaviorReportCompleteCallbackInternalImplementation);
|
|
Helper.AddCallback(ref clientDataAddress, clientData, completionDelegate, completionDelegateInternal);
|
|
|
|
Bindings.EOS_Reports_SendPlayerBehaviorReport(InnerHandle, optionsAddress, clientDataAddress, completionDelegateInternal);
|
|
|
|
Helper.TryMarshalDispose(ref optionsAddress);
|
|
}
|
|
|
|
[MonoPInvokeCallback(typeof(OnSendPlayerBehaviorReportCompleteCallbackInternal))]
|
|
internal static void OnSendPlayerBehaviorReportCompleteCallbackInternalImplementation(System.IntPtr data)
|
|
{
|
|
OnSendPlayerBehaviorReportCompleteCallback callback;
|
|
SendPlayerBehaviorReportCompleteCallbackInfo callbackInfo;
|
|
if (Helper.TryGetAndRemoveCallback<OnSendPlayerBehaviorReportCompleteCallback, SendPlayerBehaviorReportCompleteCallbackInfoInternal, SendPlayerBehaviorReportCompleteCallbackInfo>(data, out callback, out callbackInfo))
|
|
{
|
|
callback(callbackInfo);
|
|
}
|
|
}
|
|
}
|
|
}
|