public class AgoraScreenCapturer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
cptr
Native pointer to the screen capturer instance.
|
| Constructor and Description |
|---|
AgoraScreenCapturer(long cptr)
Constructs a screen capturer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys the screen capturer and releases native resources.
|
int |
initWithWindowId(long window_id,
Rectangle region_rect)
Initializes the screen capturer with a window ID.
|
private void |
ndestroy()
Destroys the native screen capturer.
|
int |
setContentHint(int content_hint)
Sets the content hint for screen capture.
|
int |
updateScreenCaptureRegion(Rectangle region_rect)
Updates the screen capture region.
|
public AgoraScreenCapturer(long cptr)
cptr - Native pointer to the screen capturer instanceprivate void ndestroy()
public void destroy()
public int initWithWindowId(long window_id,
Rectangle region_rect)
window_id - Window ID to captureregion_rect - Capture region rectanglepublic int setContentHint(int content_hint)
content_hint - Content hint valuepublic int updateScreenCaptureRegion(Rectangle region_rect)
region_rect - New capture region rectangle