Comment on page
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.
resetcall clears any local Freshpaint data attached to this user. This does not clear any local data for any of your destinations. For example this may be useful if a user logs out and logs in to a different account.