Inherits agora_gaming_rtc.IScreenCaptureManager.
◆ GetInstance()
◆ ReleaseInstance()
static void agora_gaming_rtc.ScreenCaptureManager.ReleaseInstance |
( |
| ) |
|
|
static |
◆ SetEngine()
void agora_gaming_rtc.ScreenCaptureManager.SetEngine |
( |
IRtcEngine |
engine | ) |
|
◆ CreateScreenCaptureManager()
override void agora_gaming_rtc.ScreenCaptureManager.CreateScreenCaptureManager |
( |
int |
thumbHeight, |
|
|
int |
thumbWidth, |
|
|
int |
iconHeight, |
|
|
int |
iconWidth, |
|
|
bool |
includeScreen |
|
) |
| |
|
virtual |
Creates a ScreenCaptureManager class, which includes a list of shareable screens and windows.
You can call this method before sharing a screen or window to get a list of shareable screens and windows, which enables a user to use thumbnails in the list to easily choose a particular screen or window to share.
This list also contains important information such as window ID and screen ID, with which you can call StartScreenCaptureByWindowId
or StartScreenCaptureByDisplayId
to start the sharing.
- Note
- This method applies to macOS and Windows only.
- Parameters
-
thumbHeight | The target height of the screen or window thumbnail in pixels. |
thumbWidth | The target width of the screen or window thumbnail in pixels. |
iconHeight | The target height of the app icon in pixels. |
iconWidth | The target width of the app icon in pixels. |
includeScreen | Whether the SDK returns screen information in addition to window information:
- true: Yes. The SDK returns both the screen and window information.
- false: No. The SDK returns the window information only.
|
Implements agora_gaming_rtc.IScreenCaptureManager.
◆ GetScreenCaptureSourcesCount()
override int agora_gaming_rtc.ScreenCaptureManager.GetScreenCaptureSourcesCount |
( |
| ) |
|
|
virtual |
◆ GetScreenCaptureSourceType()
Gets the type of the shared target.
- Parameters
-
index | The index number of the shared target. |
- Returns
- The screen capture source type: ScreenCaptureSourceType.
Implements agora_gaming_rtc.IScreenCaptureManager.
◆ GetScreenCaptureSourceName()
override string agora_gaming_rtc.ScreenCaptureManager.GetScreenCaptureSourceName |
( |
uint |
index | ) |
|
|
virtual |
Gets the name of the window or screen.
- Parameters
-
index | The index number of the shared window or screen. |
- Returns
- The name of the shared window or screen.
Implements agora_gaming_rtc.IScreenCaptureManager.
◆ GetScreenCaptureSourceProcessPath()
override string agora_gaming_rtc.ScreenCaptureManager.GetScreenCaptureSourceProcessPath |
( |
uint |
index | ) |
|
|
virtual |
Gets the process to which the window or screen belongs.
- Parameters
-
index | The index number of the shared window or screen. |
- Returns
- The process to which the window or screen belongs.
Implements agora_gaming_rtc.IScreenCaptureManager.
◆ GetScreenCaptureSourceTitle()
override string agora_gaming_rtc.ScreenCaptureManager.GetScreenCaptureSourceTitle |
( |
uint |
index | ) |
|
|
virtual |
Gets the title of the window or screen.
- Parameters
-
index | The index number of the shared window or screen. |
- Returns
- The title of the window or screen.
Implements agora_gaming_rtc.IScreenCaptureManager.
◆ GetScreenCaptureSourceId()
override IntPtr agora_gaming_rtc.ScreenCaptureManager.GetScreenCaptureSourceId |
( |
uint |
index | ) |
|
|
virtual |
Gets the source ID of the window or screen.
- Parameters
-
index | The index number of the shared window or screen. |
- Returns
- The source ID of the window or screen.
Implements agora_gaming_rtc.IScreenCaptureManager.
◆ GetScreenCaptureIsPrimaryMonitor()
override bool agora_gaming_rtc.ScreenCaptureManager.GetScreenCaptureIsPrimaryMonitor |
( |
uint |
index | ) |
|
|
virtual |
Checks whether the screen is the primary display.
- Parameters
-
index | The index number of the shared screen. |
- Returns
- Whether the screen or window is the primary display:
Implements agora_gaming_rtc.IScreenCaptureManager.
◆ GetScreenCaptureThumbImage()
override ThumbImageBuffer agora_gaming_rtc.ScreenCaptureManager.GetScreenCaptureThumbImage |
( |
uint |
index | ) |
|
|
virtual |
◆ GetScreenCaptureIconImage()
override ThumbImageBuffer agora_gaming_rtc.ScreenCaptureManager.GetScreenCaptureIconImage |
( |
uint |
index | ) |
|
|
virtual |
The documentation for this class was generated from the following file: