Events

class Events

Methods manipulating event streams.

These methods allow querying the internal events database and manipulating the event streams.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Post results.
Link copied to clipboard
Keys for event transients.

Functions

Link copied to clipboard
Install attachment download progress callback.
Link copied to clipboard
Install attachment upload progress callback.
Link copied to clipboard
open fun canDownloadContent(@NonNull event: Event, id: Long, automatically: Boolean): Boolean
Check if attachment can be downloaded.
Link copied to clipboard
open fun changeStreamKey(@NonNull currentKey: String, @NonNull newKey: String)
Change stream key.
Link copied to clipboard
Starts download of an attachment.
Link copied to clipboard
open fun exportToCsv(@NonNull fileName: String, @NonNull query: EventQuery, limit: Int, @NonNull callback: ExportEventHistoryCallback)
Export event history to a CSV file.
Link copied to clipboard
Link copied to clipboard
Fetch all draft events.
Link copied to clipboard
Fetch a draft event.
Link copied to clipboard
Get info about currently actively composing stream parties
Link copied to clipboard
Get number of unread event.
Link copied to clipboard
open fun load(eventId: Long): Event
Load event.
open fun load(@NonNull eventIds: Array<Long>): Array<Event>
Load events.
Link copied to clipboard
Match stream parties in a stream.
Link copied to clipboard
open fun post(@NonNull event: Event): Int
Post an event.
Link copied to clipboard
open fun remove(@NonNull event: Event)
open fun remove(eventId: Long)
Remove an event.
open fun remove(@NonNull stream: EventStream)
open fun remove(@NonNull key: String)
Remove a stream.
open fun remove(@NonNull events: Array<Event>)
open fun remove(@NonNull eventIds: Array<Long>)
Remove events.
Remove streams.
open fun remove(@NonNull event: Event, @NonNull attachmentId: Long)
Remove attachment belonging to an event.
Link copied to clipboard
Remove all events and streams.
Link copied to clipboard
Remove a draft event.
Link copied to clipboard
open fun repost(@NonNull event: Event): Boolean
Repost a failed event.
Link copied to clipboard
open fun saveDraft(@NonNull event: Event)
Save an event as a draft.
Link copied to clipboard
Send isComposing notification to a stream