28 lines
724 B
C#
28 lines
724 B
C#
#if UNITY_IPHONE
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Thousandto.CoreSDK
|
|
{
|
|
public class SDKStatisticsIOS : SDKStatistics
|
|
{
|
|
public override void StatisticalEvent(DataTypes funcType, string jsonParam)
|
|
{
|
|
SetDatas(funcType.ToString(), jsonParam);
|
|
}
|
|
|
|
private void SetDatas(string dataType, string json)
|
|
{
|
|
lsSetDatas(dataType, json);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 数据统计
|
|
/// </summary>
|
|
/// <param name="dataType">统计类型</param>
|
|
/// <param name="json">数据</param>
|
|
[DllImport("__Internal")]
|
|
private static extern void lsSetDatas(string dataType, string json);
|
|
}
|
|
}
|
|
#endif
|