ChatModule

interface ChatModule : BandyerModule

Module used for text communication.

Functions

Link copied to clipboard
abstract fun addChatObserver(observer: ChatObserver)

Observe the starting or ending event of a chat from an activity. Remember to remove the observer or a leak will occur!

open fun addChatObserver(activity: FragmentActivity, observer: ChatObserver)

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

Link copied to clipboard
abstract fun addChatUIObserver(observer: ChatUIObserver)

Observe the starting or ending event of a chat from an activity. Remember to remove the observer or a leak will occur!

open fun addChatUIObserver(activity: FragmentActivity, observer: ChatUIObserver)

Observe the starting or destroy event of an activity created for chats. 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 removeAllChatObservers()

Removes all chat observers.

Link copied to clipboard
abstract fun removeAllChatUIObservers()

Removes all chat ui observers.

Link copied to clipboard
open fun removeAllObservers()

Removes all observers.

Link copied to clipboard
abstract fun removeChatObserver(observer: ChatObserver)

Remove specified chat observer, if already added.

Link copied to clipboard
abstract fun removeChatUIObserver(observer: ChatUIObserver)

Remove specified chat observer, if already added.

Properties

Link copied to clipboard
abstract val status: BandyerModuleStatus

Status of the module