Udostępnij za pośrednictwem


AccessibilityService.MagnificationController.CenterX Property

Definition

Returns the unscaled screen-relative X coordinate of the focal center of the magnified region.

public float CenterX { [Android.Runtime.Register("getCenterX", "()F", "", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getCenterX", "()F", "", ApiSince=24)>]
member this.CenterX : single

Property Value

the unscaled screen-relative X coordinate of the center of the magnified region

Attributes

Remarks

Returns the unscaled screen-relative X coordinate of the focal center of the magnified region. This is the point around which zooming occurs and is guaranteed to lie within the magnified region.

<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 return a default value of 0.0f.

<strong>Note:</strong> This legacy API gets the center position of full-screen magnification. To get the magnification center of the current controlling magnifier, use #getMagnificationConfig instead.

This member is deprecated. Use #getMagnificationConfig() instead

Java documentation for android.accessibilityservice.AccessibilityService.MagnificationController.getCenterX().

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