Install
Automatically report the event upon the first opening after installation.
The _event_name of install event is _appInstall.
AppStart
Automatically report the event when the Android application restarts (after being inactive for more than 30 seconds since the last exit) or when it is brought back to the foreground after being in the background for 30 seconds.
The _event_name of appstart is _appStart.
AppEnd
Automatically report the event when Android application is exited or sent to the background for more than 30 seconds.
The _event_name of append is _appEnd.
SolarEngine SDK supports developers to set custom properties for three preset events: appStart, appinstall and appEnd.
Function
export function setPreSetEventWithProperties(eventType:PresetEventType, properties:Object);
Parameter | Description | Type | Required |
---|---|---|---|
eventType | Preset events, e.g. INSTALL (AppInstall) START (AppStart) END (AppEnd) | PresetEventType | Yes |
properties | Custom preset event properties sent by the developer | Object | No |
Sample Code
let eventType:PresetEventType = PresetEventType.START|PresetEventType.INSTALL;
let properties = { ... };
SolarEngine.setPreSetEventWithProperties(eventType,properties);
// After calling setPresetEvent API, _appInstall、_appStart and _appEnd events will all bring the custom properties under "properties"..
Note:
let eventType:PresetEventType = PresetEventType.START|PresetEventType.INSTALL|PresetEventType.END
let properties = {};
SolarEngine.setPreSetEventWithProperties(eventType,properties);