Agora Video Viewer
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
connection Data
: 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.
agora Settings
: 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.