The AkkoEvent class, for setting the customized events.
◆ AkkoEvent()
| com.herewhite.sdk.domain.AkkoEvent.AkkoEvent |
( |
String |
eventName, |
|
|
Object |
payload |
|
) |
| |
The AkkoEvent constructor, for initializing a customized event.
- Parameters
-
| eventName | The name of the customized event. |
| payload | The content of the customized event, which must extend the WhiteObject class to ensure the data format is correct. |
◆ getEventName()
| String com.herewhite.sdk.domain.AkkoEvent.getEventName |
( |
| ) |
|
Gets the name of the customized event.
- Returns
- The name of the customized event.
◆ setEventName()
| void com.herewhite.sdk.domain.AkkoEvent.setEventName |
( |
String |
eventName | ) |
|
Sets the name of the customized event.
- Parameters
-
| eventName | The name of the customized event. |
◆ getPayload()
| Object com.herewhite.sdk.domain.AkkoEvent.getPayload |
( |
| ) |
|
Gets the content of the customized event.
- Returns
- The content of the customized event.
◆ setPayload()
| void com.herewhite.sdk.domain.AkkoEvent.setPayload |
( |
Object |
payload | ) |
|
sets the content of the customized event.
- Parameters
-
| payload | The content of the customized event, which must extend the WhiteObject class to ensure the data format is correct. |