Agora Java API Reference for Android
NGIAgoraScreenCapturer.h
1 //
2 // Agora SDK
3 //
4 // Copyright (c) 2019 Agora.io. All rights reserved.
5 //
6 
7 #pragma once // NOLINT(build/header_guard)
8 
9 #include "AgoraBase.h"
10 #include "AgoraRefPtr.h"
11 
12 namespace agora {
13 namespace rtc {
14 class IScreenCaptureObserver;
19  public:
20 #if defined (_WIN32) || (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE)
21 
38  virtual int initWithDisplayId(uint32_t displayId, const Rectangle& regionRect) = 0;
39 #endif
40 
41 #if defined(_WIN32) || (defined(__linux__) && !defined(__ANDROID__))
42 
59  virtual int initWithScreenRect(const Rectangle& screenRect,
60  const Rectangle& regionRect) = 0;
61 #endif // TARGET_OS_MAC && !TARGET_OS_IPHONE
62 
80  virtual int initWithWindowId(view_t windowId, const Rectangle& regionRect) = 0;
81 
93  virtual int setContentHint(VIDEO_CONTENT_HINT contentHint) = 0;
94 
105  virtual int updateScreenCaptureRegion(const Rectangle& regionRect) = 0;
106 
111  virtual void setScreenOrientation(VIDEO_ORIENTATION orientation) = 0;
112 
113 #if defined(__ANDROID__)
114 
130  virtual int initWithMediaProjectionPermissionResultData(void* data,
131  const VideoDimensions& dimensions) = 0;
132 #endif // __ANDROID__
133 
134  protected:
135  ~IScreenCapturer() {}
136 };
137 
138 } // namespace rtc
139 } // namespace agora
agora::rtc::IScreenCapturer::initWithWindowId
virtual int initWithWindowId(view_t windowId, const Rectangle &regionRect)=0
agora::rtc::IScreenCapturer::setContentHint
virtual int setContentHint(VIDEO_CONTENT_HINT contentHint)=0
agora::rtc::IScreenCapturer::updateScreenCaptureRegion
virtual int updateScreenCaptureRegion(const Rectangle &regionRect)=0
agora::rtc::Rectangle
Definition: AgoraBase.h:2173
agora::rtc::IScreenCapturer::setScreenOrientation
virtual void setScreenOrientation(VIDEO_ORIENTATION orientation)=0
agora::rtc::IScreenCapturer
Definition: NGIAgoraScreenCapturer.h:18
agora::RefCountInterface
Definition: AgoraRefPtr.h:31
agora::rtc::VideoDimensions
Definition: AgoraBase.h:1432