setUserAttribute
open fun setUserAttribute(@NonNull userAttribute: String, @NonNull attributeValue: String): MoEHelper
Content copied to clipboard
Set an user attribute. This can be used to segment users on MoEngage platform.
Return
MoEHelper instance
Parameters
userAttribute
The user attribute name which needs to be added. This field cannot 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
open fun setUserAttribute(@NonNull attributeMap: Map<String, Any>): MoEHelper
Content copied to clipboard
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
open fun setUserAttribute(@NonNull name: String, @NonNull value: Date): MoEHelper
Content copied to clipboard
Set a date user attribute for the current user.
Return
MoEHelper instance
Parameters
name
user attribute name.
value
user attribute value.
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