inappmessaging / com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents / CustomEvent

CustomEvent

class CustomEvent : BaseEvent

Logging custom event for client to use. Note: Please don’t use the same attribute’s name more than once because the new attribute will replace the old one.

Constructors

| <init> | Logging custom event for client to use. Note: Please don’t use the same attribute’s name more than once because the new attribute will replace the old one.CustomEvent(eventName: String) |

Functions

| addAttribute | This method adds custom attribute of integer type.fun addAttribute(key: String, value: Int): CustomEvent
This method adds custom attribute of double type.fun addAttribute(key: String, value: Double): CustomEvent
This method adds custom attribute of string type.fun addAttribute(key: String, value: String): CustomEvent
This method adds custom attribute of boolean type.fun addAttribute(key: String, value: Boolean): CustomEvent
This method adds custom attribute of date type.fun addAttribute(key: String, value: Date): CustomEvent | | getAttributeMap | This method returns an unmodifiable map which contains all custom attributes.fun getAttributeMap(): Map<String, Attribute?> | | getRatEventMap | This method returns an unmodifiable map which contains all event’s attributes.fun getRatEventMap(): Map<String, Any> |