Timeline Service
This interface defines methods to interact with the timeline. It's implemented at the room level.
Functions
Returns a snapshot list of TimelineEvent with EventType.MESSAGE and MessageType.MSGTYPE_IMAGE or MessageType.MSGTYPE_VIDEO.
Returns a snapshot of TimelineEvent event with eventId. At the opposite of getTimelineEventLive which will be updated when local echo event is synced, it will return null in this case.
Creates a LiveData of Optional TimelineEvent event with eventId. If the eventId is a local echo eventId, it will make the LiveData be updated with the synced TimelineEvent when coming through the sync. In this case, makes sure to use the new synced eventId from the TimelineEvent class if you want to interact, as the local echo is removed from the SDK.
Returns a snapshot list of TimelineEvent with a content relation of the given type to the given eventId.