com.segment.analytics.WearTrackPayload Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wear Show documentation
Show all versions of wear Show documentation
The hassle-free way to add analytics to your Android app.
The newest version!
package com.segment.analytics;
import java.util.Map;
class WearTrackPayload extends ValueMap {
private static final String EVENT_KEY = "event";
private static final String PROPERTIES_KEY = "properties";
// For deserialization
WearTrackPayload(Map delegate) {
super(delegate);
}
WearTrackPayload(String event, Properties properties) {
put(EVENT_KEY, event);
put(PROPERTIES_KEY, properties);
}
Properties getProperties() {
return getValueMap(PROPERTIES_KEY, Properties.class);
}
String getEvent() {
return getString(EVENT_KEY);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy