Permutive
Handles identity management, lifecycle, and is the entry point to event tracking (via Permutive.eventTracker call) and segments and triggers (via Permutive.triggersProvider).
To create use the constructor or the Permutive.Builder class. If you wish to stop using the Permutive object, call Permutive.close and this will release all resources.
To add an alias to the current identity, call Permutive.setIdentity.
Constructors
Constructs a Permutive object.
Types
Functions
Clear all persistent data of the current Permutive instance
Clear all persistent data of the current Permutive instance. Callbacks will run on the main thread.
Deprecated, please use trackVideoView: trackVideoView( duration: Long, videoProperties: MediaTracker.VideoProperties?, pageProperties: MediaTracker.PageProperties?, eventProperties: EventProperties? ): MediaTracker
Create an EventTracker object. Any number of these may be created.
Enable/disable developer mode which will log more information to the console.
Associate an alias with the current user with lowest priority that never expires. Forces segments and queries to be updated with the associated identity, if there is one on the server.
Associate an list of aliases with the current user. Aliases are resolved in the order given. Forces segments and queries to be updated with the associated identity, if there is one on the server.
Associate an alias with the current user. Forces segments and queries to be updated with the associated identity, if there is one on the server. Aliases will be deleted when their expiry is in the past.
Set the referrer context, used when tracking events.
Create a page tracker object with the given context & properties. A PageTracker object will automatically track a Pageview and PageviewComplete events upon creation and closing of the PageTracker object.
Track a VideoAdView event and return an AdTracker for tracking video ad playback and interaction.
Track a Videoview event and return a MediaTracker for tracking user interaction with video content.
Create a TriggersProvider object. Any number of these may be created.