Elements Common API
All elements have the next common API.
Returns element id (UUID value).
String getId();
Returns element type.
String getType()
Returns element content type.
String getContentType()
Returns element custom fields as
JsonObject
.JsonObject getCustomFields()
Returns element duration in seconds.
int getDuration();
Returns time element was published as UNIX time in seconds.
long getPublishedAt();
Returns true if element has fixed duration.
boolean hasFixedDuration();
Register callback to listen to element changes.
void registerCallback(Callback callback);
Returns current state of element.
State getState();
Last modified 4yr ago