StreamCallId

@Serializable
data class StreamCallId(val type: String, val id: String, val cid: String = when { type.isNotEmpty() && id.isNotEmpty() -> "$type:$id" id.isNotEmpty() -> id else -> error("[StreamCallId] invalid arguments; type=$type, id=$id") }, val isValid: Boolean = type.isNotEmpty() || id.isNotEmpty()) : Parcelable

Represents the stream call details about type, id, and cid, which is essential for joining a call.

Parameters

type

A call type.

id

A call id.

cid

A cid, which consists of the type and id. For instance, default:123

isValid

Represents is the cid is valid or not.

Constructors

Link copied to clipboard
constructor(type: String, id: String, cid: String = when { type.isNotEmpty() && id.isNotEmpty() -> "$type:$id" id.isNotEmpty() -> id else -> error("[StreamCallId] invalid arguments; type=$type, id=$id") }, isValid: Boolean = type.isNotEmpty() || id.isNotEmpty())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val cid: String
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard

Parses StreamCallId of call to callType and channelId.

Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)