update: 更新 SDK 自定义的优先级事件
parent
5306922cca
commit
86742abe46
|
|
@ -1288,6 +1288,20 @@ namespace Guru
|
||||||
return (int)GetEventPriority(eventName);
|
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
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -33,6 +33,7 @@ namespace Guru
|
||||||
public const string EventJoinGroup = "join_group";
|
public const string EventJoinGroup = "join_group";
|
||||||
public const string EventLevelEnd = "level_end";
|
public const string EventLevelEnd = "level_end";
|
||||||
public const string EventLevelStart = "level_start";
|
public const string EventLevelStart = "level_start";
|
||||||
|
public const string EventLevelEndSuccessPrefix = "level_end_success_";
|
||||||
public const string EventLevelUp = "level_up";
|
public const string EventLevelUp = "level_up";
|
||||||
public const string EventLogin = "login";
|
public const string EventLogin = "login";
|
||||||
public const string EventPostScore = "post_score";
|
public const string EventPostScore = "post_score";
|
||||||
|
|
|
||||||
|
|
@ -276,8 +276,9 @@ namespace Guru
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitAllServices()
|
private void InitAllServices()
|
||||||
{
|
{
|
||||||
//-------- SetUserProperties ---------
|
//-------- Init Analytics ---------
|
||||||
InitUserProperties();
|
InitUserProperties();
|
||||||
|
SetSDKEventPriority();
|
||||||
|
|
||||||
bool useKeywords = false;
|
bool useKeywords = false;
|
||||||
bool useIAP = _initConfig.IAPEnabled;
|
bool useIAP = _initConfig.IAPEnabled;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue