ios_updateScreenCaptureRegion method

Future<int?> ios_updateScreenCaptureRegion(
  1. dynamic regionRect
)

@platform ios @hidden(iOS) @detail api @hiddensdk(audiosdk) @author liyi.000 @brief Update the capture area when capturing screen video streams through the internal capture module . @param regionRect The relative capture area to the area set by startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters}. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details @note Before calling this API, you must call startScreenVideoCapture:captureParameters:{@link #ByteRTCEngine#startScreenVideoCapture:captureParameters} to start internal screen stream capture.

Implementation

Future<int?> ios_updateScreenCaptureRegion($p_i.CGRect regionRect) async {
  $() =>
      ($instance as $p_i.ByteRTCEngine).updateScreenCaptureRegion(regionRect);

  if (Platform.isIOS) {
    return $();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}