CallEvent

Call event.

Call event represents a single call.

A call can only be made with a single remote user. Conferences are made by joining multiple simultaneous calls.

Constructors

Link copied to clipboard
constructor()
Constructor.
constructor(@NonNull user: RemoteUser)
Constructor.
constructor(@Nullable accountId: String, @NonNull uri: String)
Constructor.

Types

Link copied to clipboard
Attributes.
Link copied to clipboard
class Result
Call result.
Link copied to clipboard
annotation class Type

Properties

Link copied to clipboard
Transient attributes.

Functions

Link copied to clipboard
open fun addAttachment(@NonNull attachment: EventAttachment)
Link copied to clipboard
open fun addRemoteUser(@NonNull user: RemoteUser)
Add remote user.
Link copied to clipboard
open fun changeThread()
Change thread this pointer can be accessed from to the current one.
Link copied to clipboard
open fun clearRemoteUsers()
Clear all remote users.
Link copied to clipboard
open fun close()
Close the native pointer.
abstract fun close()
Link copied to clipboard
open fun copyAsNew(): Event
Create a copy of the event as if it is newly created.
Link copied to clipboard
open fun deleteRemoteUser(@IntRange(from = 0) index: Int)
Delete remote user.
Link copied to clipboard
open fun equals(@Nullable o: Any): Boolean
Check if the pointer is equal to another one.
Link copied to clipboard
Getting representation label of account that handling call event, could be used for display in call UI.
Link copied to clipboard
Get account ID.
Link copied to clipboard
Get account name.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@IntRange(from = 0)
open fun getAttachmentCount(): Int
Link copied to clipboard
Get attribute.
Link copied to clipboard
Link copied to clipboard
open fun getDate(): Date
Alias for getTimestamp().toDate()
Link copied to clipboard
open fun getDirection(): Int
Get event direction.
Link copied to clipboard
@FloatRange(from = 0)
open fun getDuration(): Double
Get call duration.
Link copied to clipboard
open fun getEventId(): Long
Get event ID.
Link copied to clipboard
Get file attribute.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get call recording.
Link copied to clipboard
open fun getRemoteUser(@IntRange(from = 0) index: Int): RemoteUser
Get remote user.
Link copied to clipboard
@IntRange(from = 0)
open fun getRemoteUserCount(): Int
Get remote user count.
Link copied to clipboard
open fun getResult(): Int
Get result.
Link copied to clipboard
Get event sender.
Link copied to clipboard
open fun getStorageStatus(): Int
Get storage status of the event.
Link copied to clipboard
Get stream.
Link copied to clipboard
Get stream key.
Link copied to clipboard
Get time when the call was established.
Link copied to clipboard
Get event timestamp.
Link copied to clipboard
Link copied to clipboard
open fun getType(): Int
Check the call type.
Link copied to clipboard
open fun hasAttachment(id: Long): Boolean
Link copied to clipboard
open fun hasAttribute(@NonNull attribute: String): Boolean
Check whether event has attribute.
Link copied to clipboard
open fun hashCode(): Int
Get hash code.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun hasRecording(): Boolean
Check whether the call has a recording.
Link copied to clipboard
Check whether the call has a protected recording.
Link copied to clipboard
open fun hasVideo(): Boolean
Link copied to clipboard
Check if the event is being removed.
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 event is modified in memory cache.
Link copied to clipboard
open fun isMutable(): Boolean
Check if the native pointer is mutable.
Link copied to clipboard
open fun isNew(): Boolean
Check if the event is new.
Link copied to clipboard
open fun isRemoved(): Boolean
Check if the event is removed.
Link copied to clipboard
open fun isSameAs(callEvent: CallEvent): Boolean
Check if the calls are same
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 isStored(): Boolean
Check if the event is stored in persistent storage.
Link copied to clipboard
open fun removeAttachment(@NonNull id: Long)
Link copied to clipboard
open fun removeAttachmentAt(@IntRange(from = 0) i: Int)
Link copied to clipboard
open fun removeAttribute(@NonNull name: String)
Remove attribute.
Link copied to clipboard
open fun removeRecording()
Remove call recording.
Link copied to clipboard
open fun save()
Save the event to the persistent storage.
Link copied to clipboard
open fun saveAll()
Save all dirty events.
Link copied to clipboard
open fun setAccount(@Nullable accountId: String)
Set account ID and name.
Link copied to clipboard
open fun setAttribute(@NonNull name: String, @Nullable value: String)
Set attribute.
Link copied to clipboard
open fun setDirection(direction: Int)
Set event direction.
Link copied to clipboard
open fun setDuration(@FloatRange(from = 0) duration: Double)
Set call duration.
Link copied to clipboard
open fun setRecordingProtected(recordingProtected: Boolean)
Link copied to clipboard
open fun setResult(result: Int)
Set result.
Link copied to clipboard
open fun setSender(@Nullable sender: String)
Set event sender.
Link copied to clipboard
open fun setStream(@NonNull stream: EventStream)
Set stream.
Link copied to clipboard
Set time when the call was established.
Link copied to clipboard
open fun setTimestamp(@NonNull timestamp: Timestamp)
Set event timestamp.
Link copied to clipboard
open fun setVideoEnabled(incoming: Boolean, outgoing: Boolean)
Set whether video is/was enabled.
Link copied to clipboard
open fun toString(): String
Report string describing this pointer.
Link copied to clipboard
open fun updateRecordingFilePath(filePath: String)
Update file path of recording file that stored in it's attribute.
Link copied to clipboard
open fun wasForwarded(): Boolean
Link copied to clipboard