CallModule

interface CallModule : BandyerModule

Module used for audio&video communication.

Functions

Link copied to clipboard
abstract fun addCallObserver(observer: CallObserver)

Observe the starting or ending event of a call. Remember to remove the observer or a leak will occur!

open fun addCallObserver(activity: FragmentActivity, observer: CallObserver)

Observe the starting or ending event of a call from an activity. The observer is automatically disposed when activity is destroyed.

Link copied to clipboard
abstract fun addCallUIObserver(observer: CallUIObserver)

Observe the start or destroy event of an activity created for calls. Remember to remove the observer or a leak will occur!

open fun addCallUIObserver(activity: FragmentActivity, observer: CallUIObserver)

Observe the starting or destroy event of an activity created for calls. The observer is automatically disposed when activity is destroyed.

Link copied to clipboard
open override fun getName(): String

Returns the name of the component

Link copied to clipboard
abstract fun removeAllCallObservers()

Removes all call observers.

Link copied to clipboard
abstract fun removeAllCallUIObservers()

Removes all call ui observers.

Link copied to clipboard
open fun removeAllObservers()

Removes all observers.

Link copied to clipboard
abstract fun removeCallObserver(observer: CallObserver)

Remove specified call observer, if already added.

Link copied to clipboard
abstract fun removeCallUIObserver(observer: CallUIObserver)

Remove specified call ui observer, if already added.

Link copied to clipboard
open fun setDisplayMode(call: Call, callDisplayMode: CallDisplayMode)
abstract fun setDisplayMode(callId: String, callDisplayMode: CallDisplayMode)

Set the call UI display mode.

Link copied to clipboard
open fun setVerified(call: Call, verified: Boolean)
abstract fun setVerified(callId: String, verified: Boolean)

This function allows the logged user to broadcast to other call participants that has been verified or not within the host app.

Properties

Link copied to clipboard
abstract val isInCall: Boolean

Indicates if there is an ongoing call

Link copied to clipboard
abstract val ongoingCall: Call?

Current ongoing call abstraction.

Link copied to clipboard
abstract val status: BandyerModuleStatus

Status of the module