Voice SDK v3.7.1 API Reference for All Platforms (C++)
agora::rtc::IScreenCaptureSourceList Class Referenceabstract

Public Member Functions

virtual unsigned int getCount ()=0
 
virtual ScreenCaptureSourceInfo getSourceInfo (unsigned int index)=0
 
virtual void release ()=0
 

Protected Member Functions

virtual ~IScreenCaptureSourceList ()
 

Detailed Description

The IScreenCaptureSourceList class.

Since
v3.5.2

Constructor & Destructor Documentation

◆ ~IScreenCaptureSourceList()

virtual agora::rtc::IScreenCaptureSourceList::~IScreenCaptureSourceList ( )
inlineprotectedvirtual

Member Function Documentation

◆ getCount()

virtual unsigned int agora::rtc::IScreenCaptureSourceList::getCount ( )
pure virtual

Gets the number of shareable windows and screens.

Since
v3.5.2
Returns
The number of shareable windows and screens.

◆ getSourceInfo()

virtual ScreenCaptureSourceInfo agora::rtc::IScreenCaptureSourceList::getSourceInfo ( unsigned int  index)
pure virtual

Gets information about the specified shareable window or screen.

Since
v3.5.2

After you get IScreenCaptureSourceList, you can pass in the index value of the specified shareable window or screen to get information about that window or screen from ScreenCaptureSourceInfo.

Parameters
indexThe index of the specified shareable window or screen. The value range is [0,getCount()).
Returns
ScreenCaptureSourceInfo

◆ release()

virtual void agora::rtc::IScreenCaptureSourceList::release ( )
pure virtual

Releases IScreenCaptureSourceList.

Since
v3.5.2

After you get the list of shareable windows and screens, to avoid memory leaks, call release to release IScreenCaptureSourceList instead of deleting IScreenCaptureSourceList directly.