EventStream

Event stream.

Types

Link copied to clipboard
open class Attributes
Attributes.
Link copied to clipboard
class Prefix
Prefixes for stream keys.

Properties

Link copied to clipboard
Stream key.
Link copied to clipboard
Transient attributes.

Functions

Link copied to clipboard
Add a stream party.
Link copied to clipboard
open fun changeThread()
Change thread this pointer can be accessed from to the current one.
Link copied to clipboard
Clear stream parties.
Link copied to clipboard
open fun close()
Close the native pointer.
abstract fun close()
Link copied to clipboard
open fun equals(@Nullable o: Any): Boolean
Check if the pointer is equal to another one.
Link copied to clipboard
Create a new stream with generated name.
Link copied to clipboard
Get attribute.
Link copied to clipboard
open fun getAvatarPath(): File
Get avatar path from stream.
Link copied to clipboard
Get expandable attribute.
Link copied to clipboard
Get last event timestamp.
Link copied to clipboard
Get last seen timestamp.
Link copied to clipboard
open fun getNamed(@NonNull name: String, update: Boolean): EventStream
Get a stream with specified name.
Link copied to clipboard
Get a stream with single party.
Link copied to clipboard
open fun getStorageStatus(): Int
Get storage status of the stream.
Link copied to clipboard
Get all stream parties.
Link copied to clipboard
open fun getStreamParty(@IntRange(from = 0) index: Int): StreamParty
Get stream party.
open fun getStreamParty(transportUri: String): StreamParty
Get stream party by transportUri.
Link copied to clipboard
@IntRange(from = 0)
open fun getStreamPartyCount(): Int
Get stream party count.
Link copied to clipboard
@IntRange(from = 0)
open fun getUnreadCount(): Int
Get stream unread count.
Link copied to clipboard
open fun hasAttribute(@NonNull attribute: String): Boolean
Check whether stream has attribute.
Link copied to clipboard
open fun hashCode(): Int
Get hash code.
Link copied to clipboard
Check if stream needs attention.
Link copied to clipboard
open fun isClosed(): Boolean
Check if the native pointer is closed.
Link copied to clipboard
open fun isDirty(): Boolean
Check if the stream is modified in memory cache.
Link copied to clipboard
open fun isGenerated(): Boolean
Check if the stream is generated stream.
Link copied to clipboard
Check if a group stream.
Link copied to clipboard
open fun isMutable(): Boolean
Check if the native pointer is mutable.
Link copied to clipboard
open fun isNamed(): Boolean
Check if the stream is named stream.
Link copied to clipboard
open fun isRemoved(): Boolean
Check if the stream is removed.
Link copied to clipboard
open fun isSamePointer(@NonNull other: Pointer): Boolean
Check if the pointer is the same as in another pointer.
Link copied to clipboard
open fun isSingle(): Boolean
Check if the stream is single-party stream.
Link copied to clipboard
open fun isStored(): Boolean
Check if the stream is stored in persistent storage.
Link copied to clipboard
open fun load(@NonNull streamKey: String): EventStream
Load a stream.
Link copied to clipboard
open fun removeStreamParty(@IntRange(from = 0) index: Int)
open fun removeStreamParty(@NonNull genericUri: String)
Remove a stream party.
Link copied to clipboard
open fun save()
Save the stream to the persistent storage.
Link copied to clipboard
open fun saveAll()
Save all dirty streams.
Link copied to clipboard
open fun setAttentionFree()
Set that stream no longer needs attention.
Link copied to clipboard
open fun setAttribute(@NonNull name: String, @Nullable value: String)
Set attribute.
Link copied to clipboard
open fun setLastSeenNow()
Set last seen timestamp to actual time.
Link copied to clipboard
open fun setLastSeenTimestamp(@NonNull timestamp: Timestamp)
Set last seen timestamp.
Link copied to clipboard
open fun toString(): String
Report string describing this pointer.
Link copied to clipboard
Update a stream party.