CoHostStore

abstract class CoHostStore

Anchor connection management class

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Create CoHostStore instance

Properties

Link copied to clipboard
abstract val coHostState: CoHostState

Cross-room connection related state data provided by CoHostStore. {@link CoHostState}

Functions

Link copied to clipboard
abstract fun acceptHostConnection(fromHostLiveID: String?, completion: CompletionHandler?)

Accept anchor connection request

Link copied to clipboard
abstract fun addCoHostListener(listener: CoHostListener?)

Add connection callback listener.

Link copied to clipboard
abstract fun cancelHostConnection(toHostLiveID: String?, completion: CompletionHandler?)

Cancel anchor connection request

Link copied to clipboard
abstract fun exitHostConnection(completion: CompletionHandler?)

Exit anchor connection

Link copied to clipboard
abstract fun rejectHostConnection(fromHostLiveID: String?, completion: CompletionHandler?)

Reject anchor connection request

Link copied to clipboard
abstract fun removeCoHostListener(listener: CoHostListener?)

Remove connection callback listener.

Link copied to clipboard
abstract fun requestHostConnection(targetHostLiveID: String?, layoutTemplate: CoHostLayoutTemplate, timeout: Int, extraInfo: String?, completion: CompletionHandler?)

Initiate anchor connection request