This module encapsulates the features and communcation with the Event Feed Service.
Your application should instantiate exactly one instance of this class, and it should ideally be alive throughout the lifetime of your application, so that you can receive events from the items when they are clicked.
Send a EventFeedItem to the service to be displayed
| Parameters: |
|
|---|
Remove all items
Update a previously-sent EventFeedItem
| Parameters: |
|
|---|
For each event that you want to display, you need to create one instance of this class and then use the event feed service to display the object.
One item that can be posted to the event feed
The data to be sent when clicked (list of str, int, bool)
Body text of the item (string)
The action to be executed when clicked (callable)
Footer text, displayed near the time (string)
List of image filenames/URLs (list of strings)
The URL to be opened when the item is clicked (string)
Flag to overlay a play button on the thumbnail (bool)