MoEHelper

class MoEHelper

This class is deprecated since version 12.0.00 and will be removed in 14.0.00. Use MoEAnalyticsHelper instead.

Types

Companion
Link copied to clipboard
object Companion

Functions

logoutUser
Link copied to clipboard
fun logoutUser()

Invalidates the existing sessions and user attributes and treats all actions performed by the user as a new user after this method is called

If the Application is doing a self registration for gcm token then invalidate the token on logout

setAlias
Link copied to clipboard
fun setAlias(alias: Any)

Set an Alias to update the existing Unique Id Note: This API only accepts the below data-types:

setAppStatus
Link copied to clipboard
fun setAppStatus(status: AppStatus)

This API tells the SDK whether it is a fresh install or an existing application was updated.

setBirthDate
Link copied to clipboard
fun setBirthDate(birthDate: Date)

Helper method to set User BirthDate

setEmail
Link copied to clipboard
fun setEmail(value: String)

Helper method to set user email

setFirstName
Link copied to clipboard
fun setFirstName(value: String)

Helper method to set User first Name

setFullName
Link copied to clipboard
fun setFullName(value: String)

Helper method to set user full name

setGender
Link copied to clipboard
fun setGender(gender: UserGender)

Helper method to set user gender

setLastName
Link copied to clipboard
fun setLastName(value: String)

Helper method to set User Last Name

setNumber
Link copied to clipboard
fun setNumber(value: String)

Helper method to set User Number

setUniqueId
Link copied to clipboard
fun setUniqueId(uniqueId: Any)

Set an Unique Identifier for the user.

setUserAttribute
Link copied to clipboard
fun setUserAttribute(attributeMap: Map<String, Any>)

Set the user attributes with the attributes specified in the HashMap

fun setUserAttribute(attributeName: String, attributeValue: Any)

Track a user attribute in the default instance.

setUserAttributeEpochTime
Link copied to clipboard
fun setUserAttributeEpochTime(name: String, value: Long)

Sets the given epoch time for the given user.

setUserAttributeISODate
Link copied to clipboard
fun setUserAttributeISODate(attributeName: String, attributeValue: String)

Set a date type user attribute for the current user.

setUserLocation
Link copied to clipboard
fun setUserLocation(lat: Double, lng: Double)

Track user location as a User Attribute

trackDeviceLocale
Link copied to clipboard
fun trackDeviceLocale()

Tracks device locale.

trackEvent
Link copied to clipboard
fun trackEvent(eventName: String, properties: Properties)

Track user behaviour as events with properties.