AccessibilityService.TakeScreenshot Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Takes a screenshot of the specified display and returns it via an
AccessibilityService.ScreenshotResult
.
[Android.Runtime.Register("takeScreenshot", "(ILjava/util/concurrent/Executor;Landroid/accessibilityservice/AccessibilityService$TakeScreenshotCallback;)V", "GetTakeScreenshot_ILjava_util_concurrent_Executor_Landroid_accessibilityservice_AccessibilityService_TakeScreenshotCallback_Handler", ApiSince=30)]
public virtual void TakeScreenshot (int displayId, Java.Util.Concurrent.IExecutor executor, Android.AccessibilityServices.AccessibilityService.ITakeScreenshotCallback callback);
[<Android.Runtime.Register("takeScreenshot", "(ILjava/util/concurrent/Executor;Landroid/accessibilityservice/AccessibilityService$TakeScreenshotCallback;)V", "GetTakeScreenshot_ILjava_util_concurrent_Executor_Landroid_accessibilityservice_AccessibilityService_TakeScreenshotCallback_Handler", ApiSince=30)>]
abstract member TakeScreenshot : int * Java.Util.Concurrent.IExecutor * Android.AccessibilityServices.AccessibilityService.ITakeScreenshotCallback -> unit
override this.TakeScreenshot : int * Java.Util.Concurrent.IExecutor * Android.AccessibilityServices.AccessibilityService.ITakeScreenshotCallback -> unit
Parameters
- displayId
- Int32
The logic display id, must be Display#DEFAULT_DISPLAY
for
default display.
- executor
- IExecutor
Executor on which to run the callback.
The callback invoked when taking screenshot has succeeded or failed.
See TakeScreenshotCallback
for details.
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.