Skip to content

Custom Event Logging (Optional) ​

Function ​

Used to record in-game player event behavior.

Function ​

objective-c
- (void)gamedreamerLogEventV2WithName:(NSString *)name
                                               parameters:(NSDictionary<NSString *, NSObject *> * _Nullable)parameters;
											           target:(EventTarget)target;

Parameter ​

Parameter nameNullable (Yes/No)explain
nameNoDefines the name of the event (the length cannot exceed 40 characters, and only English letters, numbers, and underscores are supported)
parametersYesSome relational data groups related to this event
targetIf you do not select the option, only the SDK will be returned; EventTargetPlatform means only the SDK will be returned; eventTargetAll means the SDK will be returned + all third-party divisor platforms

Note:name,parametersThese two parameters need to be transparent according to rules in some events, as shown in the following table

Event NameexplainParameter
GDEventType.EventTutorial_beginNew hand missions to startNone
GDEventType.EventTutorial_completionCompleted New MissionNone
GDEventType.EventLevelAchievedRole level reached, record once every 10 levelsThe Key value is EventParamLevel (defined), and the value value is the role level.
GDEventType.EventEnterPaymentOpen Stored Values PageNone
GDEventType.EvnetActiveDaysActive DaysThe Key value is EventParamDay (defined), and the value is the number of days the player is active.

Correction ​

None

Example code ​

objective-c
[[GamedreamerManager shareInstance] gamedreamerLogEventV2WithName :@ "event name" parameters:@ "event related data group" target: EventTargetAll];