getScreenCaptureSourceList method
@hidden(iOS)
@detail api
@author liyi.000
@brief Get the list of shared objects (application windows and screens).
@return The list of shared objects. See ByteRTCScreenCaptureSourceInfo{@link #ByteRTCScreenCaptureSourceInfo}。
The enumerated value can be used for startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters}.
@note Only valid for PC and macOS.
Implementation
FutureOr<ByteRTCScreenCaptureSourceInfo> getScreenCaptureSourceList() async {
final result = await nativeCall('getScreenCaptureSourceList', []);
return packObject(
result,
() => ByteRTCScreenCaptureSourceInfo(
const NativeClassOptions([], disableInit: true)));
}