Function | Description | Parameter |
---|---|---|
eventStart: | event begins | eventName: event name |
eventFinish:properties: | event ends | eventName: event name properties: custom parameters |
If you need to record the duration of an event, you can call eventStart: to start timing and configure the name of the event, and call eventFinish:properties: when the event comes to an end, which will automatically add a "_duration" property for this event (unit: millisecond). It should be noted that there can only be one timing task for the same event.
eventStart Example
[[SolarEngineSDK sharedInstance] eventStart:@"Enter_Shop"];
eventFinish Example
[[SolarEngineSDK sharedInstance] eventFinish:@"Enter_Shop" properties:properties];
Note:
When reporting the preset event _appEnd, the duration starting from the last _appStart will be reported by default. That is, the duration of the exit event will start timing automatically even without any manual configurations.