title: does android accessibilityService take screenshot work on api lower than 30?
body: <p>I am using Android AccessibilityService to take screenshot using some method that has been added on api level 30 , I wonder to know if it works on api's lower than 30 or not</p>
  <p>this is my overrided method</p>
  <pre><code>
      @Override
      public void takeScreenshot(int displayId, @NonNull Executor executor, @NonNull TakeScreenshotCallback callback) {
          super.takeScreenshot(displayId, executor, callback);
      }
  </code></pre>
  <p>and this is where I call takeScreenshot method and it gives me the result by takeScreenshot CallBack</p>
  <pre><code>
  takeScreenshot(Display.DEFAULT_DISPLAY,
                  getApplicationContext().getMainExecutor(), new TakeScreenshotCallback() {
              @RequiresApi(api = Build.VERSION_CODES.R)
              @Override
              public void onSuccess(@NonNull ScreenshotResult screenshotResult) {
  
                  Log.i(&quot;ScreenShotResult&quot;,&quot;onSuccess&quot;);
                  Bitmap bitmap = Bitmap.wrapHardwareBuffer(screenshotResult.getHardwareBuffer(),screenshotResult.getColorSpace());
                  AccessibilityUtils.saveImage(bitmap,getApplicationContext(),&quot;WhatsappIntegration&quot;);
  
              }
  
              @Override
              public void onFailure(int i) {
  
                  Log.i(&quot;ScreenShotResult&quot;,&quot;onFailure code is &quot;+ i);
  
              }
          });
  
  </code></pre>