Insert an event with associated properties. Only number and string property types are supported to a maximum count of 100 and maximum size per entry of 1KiB.
Add Events into the timeline
Add an event into the timeline - stores the event with the timestamp when it was added.
SDK version 3.0.0 and above
+ (void) logEvent:(NSString*)eventName;
+ (void) logEvent:(NSString*)eventName withProperties:(nullable NSDictionary<NSString*, id>*)properties;
SDK below 3.0.0 + (void) addTag:(NSString*)tag withProperties:(NSDictionary*)properties;
The API, the parameters are:
tag: A tag to attach to the session recording at the current time
properties: (Optional) An NSDictionary of properties to associate with this tag
SDK version 3.0.0 and above
UXCam.logEvent(String eventName);
UXCam.logEvent (String eventName, Map<String, Object> params)
SDK below 3.0.0
Map<String, String> properties = new HashMap<>();
properties.put("property1", "value1");
UXCam.addTagWithProperties("Tag", properties);
The API, the parameters are:
tag: A tag to attach to the session recording at the current time
properties: Map<String, String> of properties to associate with this tag
UXCam.logEvent(String key)
Example Android:
Hashtable props = new Hashtable();
props.Add("key1", "value1");
UXCam.LogEvent("asd", props);
Example iOS:
var properties = new NSDictionary("key1", "value1", "key2", "value2");
UXCam.LogEvent("eventName", NSObject.FromObject(properties));
UXCam.logEvent(String key)
UXCam.logEventWithProperties(key, JSONObject)
Example:
UXCam.logEventWithProperties("eventName",
{
"key1": "value1",
"key2": "value2"
});