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 name | Nullable (Yes/No) | explain |
|---|---|---|
| name | No | Defines the name of the event (the length cannot exceed 40 characters, and only English letters, numbers, and underscores are supported) |
| parameters | Yes | Some relational data groups related to this event |
| target | If 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 Name | explain | Parameter |
|---|---|---|
| GDEventType.EventTutorial_begin | New hand missions to start | None |
| GDEventType.EventTutorial_completion | Completed New Mission | None |
| GDEventType.EventLevelAchieved | Role level reached, record once every 10 levels | The Key value is EventParamLevel (defined), and the value value is the role level. |
| GDEventType.EventEnterPayment | Open Stored Values Page | None |
| GDEventType.EvnetActiveDays | Active Days | The 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];