EventStream SDK to be used in conjunction with EventServer provided by TargetAgency
Features
Mobile App SDK to integrate wtih TargetAgency event server
Getting started
Usage
Initialize Engine
String appSessionId = "alpha-abc-session-id";
EventStreamSdk engine = EventStreamSdk(sourceAppName, appSessionId, { "key1": "values1", "key2": "values2", });
Set Session Parameters
engine.setSessionAttr("Key3", "Val4");
Remove Session Parameters
engine.clearSessionAttr("key3")
Clear all Session Parameters
engine.clearSession()
Capture Events
CustomEvent event = CustomEvent("SampleClickEvent"); engine.capture(event);
Additional information
Ensure to initialize before Submitting Events, Additionally make sure to wrap event code to avoid unexpected behavior