[M] sync n3

This commit is contained in:
2024-12-09 16:54:19 +08:00
parent c90bbe86e7
commit 05331e6286
845 changed files with 6138 additions and 1307 deletions

View File

@@ -0,0 +1,64 @@
using System;
namespace ThinkingData.Analytics
{
/// <summary>
/// Time Zone in SDK options
/// </summary>
public enum TDTimeZone
{
Local,
UTC,
Asia_Shanghai,
Asia_Tokyo,
America_Los_Angeles,
America_New_York,
Other = 100
}
/// <summary>
/// SDK running mode options
/// </summary>
public enum TDMode
{
Debug = 1,
DebugOnly = 2,
Normal = 0
}
/// <summary>
/// Data post options
/// </summary>
public enum TDNetworkType
{
Wifi = 2,
All = 1
}
/// <summary>
/// Auto-tracking Events Type options
/// </summary>
[Flags]
public enum TDAutoTrackEventType
{
None = 0,
AppStart = 1 << 0, // reporting when the app enters the foreground ta_app_start
AppEnd = 1 << 1, // reporting when the app enters the background ta_app_end
AppCrash = 1 << 4, // reporting when an uncaught exception occurs ta_app_crash
AppInstall = 1 << 5, // reporting when the app is opened for the first time after installation ta_app_install
AppSceneLoad = 1 << 6, // reporting when the scene is loaded in the app ta_scene_loaded
AppSceneUnload = 1 << 7, // reporting when the scene is unloaded in the app ta_scene_loaded
All = AppStart | AppEnd | AppInstall | AppCrash | AppSceneLoad | AppSceneUnload
}
/// <summary>
/// Data Reporting Status
/// </summary>
public enum TDTrackStatus
{
Pause = 1, // pause data reporting
Stop = 2, // stop data reporting, and clear caches
SaveOnly = 3, // data stores in the cache, but not be reported
Normal = 4 // resume data reporting
}
}