AccessibilityService.MagnificationController.CenterY Property
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.
Returns the unscaled screen-relative Y coordinate of the focal center of the magnified region.
public float CenterY { [Android.Runtime.Register("getCenterY", "()F", "", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getCenterY", "()F", "", ApiSince=24)>]
member this.CenterY : single
Property Value
the unscaled screen-relative Y coordinate of the center of the magnified region
- Attributes
Remarks
Returns the unscaled screen-relative Y 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
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.