update: 更新 SDK 自定义的优先级事件

dev
胡宇飞 2024-06-18 10:24:43 +08:00
parent 5306922cca
commit 86742abe46
3 changed files with 17 additions and 1 deletions

View File

@ -1288,6 +1288,20 @@ namespace Guru
return (int)GetEventPriority(eventName);
}
/// <summary>
/// set all events as 'Emergence' event, which will be triggered immediately
/// </summary>
internal void SetSDKEventPriority()
{
SetEventPriority(EventPriority.Emergence, new []
{
Consts.EventTchAdRev001Impression,
Consts.EventTchAdRev02Impression,
Consts.EventLevelStart,
Consts.EventLevelEnd,
});
}
#endregion
}
}

View File

@ -33,6 +33,7 @@ namespace Guru
public const string EventJoinGroup = "join_group";
public const string EventLevelEnd = "level_end";
public const string EventLevelStart = "level_start";
public const string EventLevelEndSuccessPrefix = "level_end_success_";
public const string EventLevelUp = "level_up";
public const string EventLogin = "login";
public const string EventPostScore = "post_score";

View File

@ -276,8 +276,9 @@ namespace Guru
/// </summary>
private void InitAllServices()
{
//-------- SetUserProperties ---------
//-------- Init Analytics ---------
InitUserProperties();
SetSDKEventPriority();
bool useKeywords = false;
bool useIAP = _initConfig.IAPEnabled;