-
- All Implemented Interfaces:
-
com.permutive.android.PermutiveApi,com.permutive.android.PermutiveSdk,java.io.Closeable,java.lang.AutoCloseable
public final class Permutive implements PermutiveApi
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPermutive.BuilderBuild a new Permutive object.
Calling aliasProvider and identity is optional, all other methods are required.
public classPermutive.Companion
-
Field Summary
Fields Modifier and Type Field Description private final SdkMetricscurrentMetricsprivate final Map<String, List<String>>currentActivationsprivate final List<String>currentCohortsprivate final Map<String, List<Integer>>currentReactionsprivate final List<Integer>currentSegments
-
Constructor Summary
Constructors Constructor Description Permutive(Context context, UUID projectId, UUID apiKey, List<AliasProvider> aliasProviders, String identity, List<Alias> customAliases, Boolean unused)Constructs a Permutive object. Permutive(Context context, UUID workspaceId, UUID apiKey, List<AliasProvider> aliasProviders, String identity, List<Alias> customAliases)Constructs a Permutive object.
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class com.permutive.android.PermutiveApi
clearPersistentData, clearPersistentData, createVideoTracker, eventTracker, getCurrentMetrics, setDeveloperMode, setIdentity, setIdentity, setIdentity, setReferrer, setTitle, setUrl, trackPage, triggersProvider -
Methods inherited from class com.permutive.android.PermutiveSdk
currentUserId, getCurrentActivations, getCurrentCohorts, getCurrentReactions, getCurrentSegments, logger, recordAppNexusAdImpression, recordAppNexusTargeting, recordGamTargeting, sessionId, trackApiCall, viewId, workspaceId -
Methods inherited from class java.io.Closeable
close -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-