AgoraVideoViewer

fun AgoraVideoViewer(context: Context, connectionData: AgoraConnectionData, style: AgoraVideoViewer.Style = Style.FLOATING, agoraSettings: AgoraSettings = AgoraSettings(), delegate: AgoraVideoViewerDelegate? = null)

Creates an AgoraVideoViewer object, to be placed anywhere in your application.

Parameters

context

: Application context

connectionData

: Storing struct for holding data about the connection to Agora service.

style

: Style and organisation to be applied to all the videos in this AgoraVideoViewer.

agoraSettings

: Settings for this viewer. This can include style customisations and information of where to get new tokens from.

delegate

: Delegate for the AgoraVideoViewer, used for some important callback methods.