Agora Interactive Whiteboard Java API Reference
Public Member Functions | List of all members
com.herewhite.sdk.domain.AkkoEvent Class Reference
Inheritance diagram for com.herewhite.sdk.domain.AkkoEvent:
com.herewhite.sdk.domain.WhiteObject

Public Member Functions

 AkkoEvent (String eventName, Object payload)
 
String getEventName ()
 
void setEventName (String eventName)
 
Object getPayload ()
 
void setPayload (Object payload)
 
- Public Member Functions inherited from com.herewhite.sdk.domain.WhiteObject
String toString ()
 
JSONObject toJSON ()
 

Detailed Description

The AkkoEvent class, for setting the customized events.

Constructor & Destructor Documentation

◆ AkkoEvent()

com.herewhite.sdk.domain.AkkoEvent.AkkoEvent ( String  eventName,
Object  payload 
)

The AkkoEvent constructor, for initializing a customized event.

Parameters
eventNameThe name of the customized event.
payloadThe content of the customized event, which must extend the WhiteObject class to ensure the data format is correct.

Member Function Documentation

◆ 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
eventNameThe 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
payloadThe content of the customized event, which must extend the WhiteObject class to ensure the data format is correct.