set User Attribute
Set an user attribute. This can be used to segment users on MoEngageplatform.
Return
MoEHelper instance
Parameters
userAttribute
The user attribute name which needs to be added. This fieldcannot be null
attributeValue
The value associated with the specified user attribute
open fun setUserAttribute(@NonNull() userAttribute: String, attributeValue: Int): MoEHelper
Content copied to clipboard
open fun setUserAttribute(@NonNull() userAttribute: String, attributeValue: Boolean): MoEHelper
Content copied to clipboard
open fun setUserAttribute(@NonNull() userAttribute: String, attributeValue: Double): MoEHelper
Content copied to clipboard
open fun setUserAttribute(@NonNull() userAttribute: String, attributeValue: Float): MoEHelper
Content copied to clipboard
open fun setUserAttribute(@NonNull() userAttribute: String, attributeValue: Long): MoEHelper
Content copied to clipboard
Set a user attribute for the current user
Return
MoEHelper instance
Parameters
userAttribute
The attribute which needs to be set
attributeValue
The attribute value corresponding to the userAttribute
Set the user attributes with the attributes specified in the HashMap
Return
MoEHelper instance
Parameters
attributeMap
The attribute map which needs to be set for the user
Set a date user attribute for the current user.
Return
MoEHelper instance
Parameters
name
user attribute name.
value
user attribute value.
@Deprecated()
Content copied to clipboard
open fun setUserAttribute(@NonNull() name: String, @NonNull() location: Location): MoEHelper
Content copied to clipboard
open fun setUserAttribute(@NonNull() name: String, @NonNull() location: GeoLocation): MoEHelper
Content copied to clipboard