-
-
Field Summary
Fields Modifier and Type Field Description private BooleanhasIdentityprivate final Contextcontextprivate final LifecycleOwnerlifecycleOwner
-
Constructor Summary
Constructors Constructor Description Spindl(Context context, LifecycleOwner lifecycleOwner)
-
Method Summary
Modifier and Type Method Description final BooleangetHasIdentity()final UnitsetHasIdentity(Boolean hasIdentity)final ContextgetContext()final LifecycleOwnergetLifecycleOwner()final Unitdestroy()final List<Long>identify(String apiKey, String walletAddress, String customerUserId)Associate subsequently tracked events with the particular user. final List<Long>track(String name, JsonObject properties)track: Track the event Flow<String>keyFlow()final UnitclearEvents()-
-
Constructor Detail
-
Spindl
Spindl(Context context, LifecycleOwner lifecycleOwner)
- Parameters:
context- The AppContext, for working with coroutineslifecycleOwner- Pause, resume, and cancel the background uploading task according to the lifecycle
-
-
Method Detail
-
getHasIdentity
final Boolean getHasIdentity()
-
setHasIdentity
final Unit setHasIdentity(Boolean hasIdentity)
-
getContext
final Context getContext()
-
getLifecycleOwner
final LifecycleOwner getLifecycleOwner()
-
identify
final List<Long> identify(String apiKey, String walletAddress, String customerUserId)
Associate subsequently tracked events with the particular user.
- Parameters:
apiKey- For server authentication and authorisationwalletAddress- A crypto walletcustomerUserId- Typically an email
-
track
final List<Long> track(String name, JsonObject properties)
track: Track the event
- Parameters:
name- Name of the event to trackproperties- A JsonObject with additional information about the event being tracked
-
clearEvents
final Unit clearEvents()
-
-
-
-