Docs
Use Cases
Producer Guide
SDK
Search…
v24
Introduction
Use Cases
When to choose Monterosa / Interaction Cloud™
Platform Components
Core Concepts
Experiences
User Management
Interaction SDK
TV & Big Screen Graphics
Scaling Capacity
FAQs
Creator User Guide
Getting Started
Studio Guide
Image or File Fields & Hosting
Localisation
Project Assets
Data Capture
Voting Certification
Curation
Twitter #Voting
User Roles
DEVELOPER GUIDES
What is an App?
Available APIs & Libraries
Creating an App in JavaScript
App Specs
TV & Big Screen Graphics
Working with Gamify
Browser Support
Advanced Topics
JavaScript lib
JavaScript Lib Overview
LViS
Listings
Event
Elements
Data Element
Regular Poll Element
Flexible Poll Element
Swing Poll Element
Emoting Poll Element
Prediction Element
Trivia Element
Powerbar Element
Curation Element
Connection Manager
Project
Date
Run
User
Storage
Sync
Migration Guide
Changelog
Android lib
Android Lib Overview
LViS
Project
Event
Elements Common API
Regular Poll Element
Swing Poll Element
Emoting Poll Element
Combi Poll Element
Powerbar Element
Trivia Element
Prediction Element
Data Element
Changelog
iOS lib
iOS Lib Overview
LViS
Project
Event
Elements Common API
Regular Poll Element
Swing Poll Element
Diametric Element
Emoting Poll Element
Combi Poll Element
Powerbar Element
Quiz Element
Trivia Element
Prediction Element
Data Element
Changelog
CONTROL API V2
Control API v2 Overview
Element Resource
Organisations
Brands
Apps
App Setup
Projects
Events
Event Templates
Elements
Objects definitions
PUBLIC FEEDS
Public Feeds
Listings
Elements
Event History
Demographics
LIMITS
Content
Vote Elements
Social Voting
Leaderboard
Extensions
Overview
Instance handshake
Project handshake
Project delete
Tabs
Event Tabs
Listings notification
Elements notification
Analytics
Assets
Event-level feed
Webhooks
COMPLIANCE
Data Requests
RELEASE NOTES
v23.0
V23.1
V23.2
Migration Guide
Powered By
GitBook
Elements Common API
All elements have the next common API.
Get Id
Returns element id (UUID value).
1
String
getId
();
Copied!
Get type
Returns element type.
1
String
getType
()
Copied!
Get content type
Returns element content type.
1
String
getContentType
()
Copied!
Get custom fields
Returns element custom fields as
JsonObject
.
1
JsonObject
getCustomFields
()
Copied!
Get duration
Returns element duration in seconds.
1
int
getDuration
();
Copied!
Get published time
Returns time element was published as UNIX time in seconds.
1
long
getPublishedAt
();
Copied!
Has fixed duration
Returns true if element has fixed duration.
1
boolean
hasFixedDuration
();
Copied!
Register callback
Register callback to listen to element changes.
1
void
registerCallback
(
Callback
callback
);
Copied!
Get state
Returns current state of element.
1
State
getState
();
Copied!
Android lib - Previous
Event
Next - Android lib
Regular Poll Element
Last modified
2yr ago
Copy link
Contents
Get Id
Get type
Get content type
Get custom fields
Get duration
Get published time
Has fixed duration
Register callback
Get state