setUserAttribute

fun setUserAttribute(context: Context, attributes: Map<String, Any>)

Set the user attributes with the attributes specified in the HashMap

Since

12.0.00

Parameters

context

instance of Context

attributes

The attribute map which needs to be set for the user


fun setUserAttribute(context: Context, attributes: Map<String, Any>, appId: String)

Set the user attributes with the attributes specified in the HashMap

Since

12.0.00

Parameters

context

instance of Context

attributes

The attribute map which needs to be set for the user

appId

Account identifier, APP ID on the MoEngage Dashboard.


fun setUserAttribute(context: Context, attributeName: String, attributeValue: Any)

Track a user attribute in the default instance.

Note: This API only accepts the below data-types:

String, Int, Long, Double, Float, Boolean, Date, GeoLocation, Location

Since

12.0.00

Parameters

context

instance of Context

attributeName

Attribute Name

attributeValue

Attribute Value


fun setUserAttribute(context: Context, name: String, value: Any, appId: String)

Track a user attribute in the given account.

Note: This API only accepts the below data-types:

String, Int, Long, Double, Float, Boolean, Date, GeoLocation, Location

Since

12.0.00

Parameters

context

instance of Context

name

Attribute Name

value

Attribute Value

appId

Account identifier, APP ID on the MoEngage Dashboard.