Freshpaint Android SDK Reference
Freshpaint freshpaint = new Freshpaint.Builder(getApplicationContext(), "<your environment id>")
Before making the call to
build()you can call different methods to customize the behavior of the Freshpaint SDK. Here are some of the supported customization options:
trackcall can be used to manually send data to your destinations.
.track("Purchase", new Properties().putValue("Price", 500));
identifycall attaches an identity or user properties to the user.
screencall triggers a screen event. This is the mobile equivalent of a pageview event. Some destinations will treat this event specially.
.screen("Home Screen", new Properties().putValue("A/B Test Variant", "A"));
The group call associates the user with a user group. Some destinations let you work with groups of users. For example, Amplitude lets you group users together and then perform analytics on the individual groups. Most often, a group of users is all users that work for a single organization.
.group("Google", new Traits()
aliascall can be used to specify one user id as an alias for another user id. Calling this will alias the current user's identity to the new provided identity. This is needed to implement identify for some destinations, specifically Mixpanel and Kissmetrics.