Partager via


AccessibilityService.MagnificationController.Reset(Boolean) Method

Definition

Resets magnification scale and center to their default (e.

[Android.Runtime.Register("reset", "(Z)Z", "", ApiSince=24)]
public bool Reset (bool animate);
[<Android.Runtime.Register("reset", "(Z)Z", "", ApiSince=24)>]
member this.Reset : bool -> bool

Parameters

animate
Boolean

true to animate from the current scale and center or false to reset the scale and center immediately

Returns

true on success, false on failure

Attributes

Remarks

Resets magnification scale and center to their default (e.g. no magnification) values.

<strong>Note:</strong> If the service is not yet connected (e.g. AccessibilityService#onServiceConnected() has not yet been called) or the service has been disconnected, this method will have no effect and return false.

<strong>Note:</strong> This legacy API reset full-screen magnification. To reset the current controlling magnifier, use #resetCurrentMagnification(boolean) ()} instead.

Java documentation for android.accessibilityservice.AccessibilityService.MagnificationController.reset(boolean).

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