public static void setReportMode(DCReportMode mode) { #if UNITY_EDITOR #elif UNITY_ANDROID agent.CallStatic("setReportMode", (int)mode); #elif UNITY_IPHONE dcSetReportMode((int)mode); #elif UNITY_WP8 DataEyeWP8.DCAgent.setReportMode((DataEyeWP8.DCReportMode)mode); #endif }
//------------------------------------------------------------------------- /// <summary> /// DataEye统计初始化 /// </summary> /// <param name="app_id"></param> /// <param name="channel_id"></param> /// <param name="report_mode"></param> public static void initWithAppIdAndChannelId(string app_id, string channel_id, bool open_adtracking = true, DCReportMode report_mode = DCReportMode.DC_AFTER_LOGIN) { //if (open_adtracking) //{ // DCAgent.openAdTracking(); //} DCAgent.setReportMode(report_mode); DCAgent.getInstance().initWithAppIdAndChannelId(app_id, channel_id); }
//------------------------------------------------------------------------- /// <summary> /// DataEye统计初始化 /// </summary> /// <param name="app_id"></param> /// <param name="channel_id"></param> /// <param name="report_mode"></param> public static void initWithAppIdAndChannelId(string app_id, string channel_id, DCReportMode report_mode = DCReportMode.DC_AFTER_LOGIN) { DCAgent.getInstance().initWithAppIdAndChannelId(app_id, channel_id); }