StreamVideo
The main interface to control the Video calls. StreamVideoClient implements this interface.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Create a device that will be used to receive push notifications.
Link copied to clipboard
Remove a device used to receive push notifications.
Link copied to clipboard
abstract suspend fun queryCalls(filters: Map<String, Any>, sort: List<SortField> = listOf(SortField.Asc(DEFAULT_QUERY_CALLS_SORT)), limit: Int = DEFAULT_QUERY_CALLS_LIMIT, prev: String? = null, next: String? = null, watch: Boolean = false): Result<QueriedCalls>
Queries calls with a given filter predicate and pagination.
Link copied to clipboard
abstract suspend fun queryMembers(type: String, id: String, filter: Map<String, Any>? = null, sort: List<SortField> = mutableListOf(SortField.Desc("created_at")), prev: String? = null, next: String? = null, limit: Int = 25): Result<QueriedMembers>
Queries calls with a given filter predicate and pagination.
Link copied to clipboard
Subscribe to all events
Link copied to clipboard
abstract fun subscribeFor(vararg eventTypes: Class<out VideoEvent>, listener: VideoEventListener<VideoEvent>): EventSubscription
Subscribe for a specific list of events
Inherited functions
Link copied to clipboard
abstract fun getNotificationUpdates(coroutineScope: CoroutineScope, call: Call, localUser: User, onUpdate: (Notification) -> Unit)
Get subsequent updates to notifications. Initially, notifications are posted by one of the other methods, and then this method can be used to re-post them with updated content.
Link copied to clipboard
abstract fun getOngoingCallNotification(callId: StreamCallId, callDisplayName: String? = null, isOutgoingCall: Boolean = false, remoteParticipantCount: Int = 0): Notification?
Link copied to clipboard
abstract fun getRingingCallNotification(ringingState: RingingState, callId: StreamCallId, callDisplayName: String? = null, shouldHaveContentIntent: Boolean = true): Notification?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T : VideoEvent> StreamVideo.subscribeFor(listener: VideoEventListener<T>): EventSubscription
Extension function that makes it easy to use on kotlin, but keeps Java usable as well