Share via


AccessibilityService.ITakeScreenshotCallback.OnFailure(Int32) Method

Definition

Called when taking screenshot has failed.

[Android.Runtime.Register("onFailure", "(I)V", "GetOnFailure_IHandler:Android.AccessibilityServices.AccessibilityService/ITakeScreenshotCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)]
public void OnFailure (int errorCode);
[<Android.Runtime.Register("onFailure", "(I)V", "GetOnFailure_IHandler:Android.AccessibilityServices.AccessibilityService/ITakeScreenshotCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)>]
abstract member OnFailure : int -> unit

Parameters

errorCode
Int32

The error code of this operation.

Attributes

Remarks

Called when taking screenshot has failed. errorCode will identify the reason of failure.

Java documentation for android.accessibilityservice.AccessibilityService.TakeScreenshotCallback.onFailure(int).

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.

Applies to