Udostępnij za pośrednictwem


AccessibilityService.MagnificationController.ResetCurrentMagnification Method

Definition

Resets magnification scale and center of the controlling magnification to their default (e.

[Android.Runtime.Register("resetCurrentMagnification", "(Z)Z", "", ApiSince=33)]
public bool ResetCurrentMagnification (bool animate);
[<Android.Runtime.Register("resetCurrentMagnification", "(Z)Z", "", ApiSince=33)>]
member this.ResetCurrentMagnification : 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 of the controlling magnification 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.

Java documentation for android.accessibilityservice.AccessibilityService.MagnificationController.resetCurrentMagnification(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