AccessibilityService.MagnificationController.SetCenter Method     
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.
Sets the center of the magnified viewport.
[Android.Runtime.Register("setCenter", "(FFZ)Z", "", ApiSince=24)]
public bool SetCenter(float centerX, float centerY, bool animate);[<Android.Runtime.Register("setCenter", "(FFZ)Z", "", ApiSince=24)>]
member this.SetCenter : single * single * bool -> boolParameters
- centerX
- Single
the unscaled screen-relative X coordinate on which to center the viewport
- centerY
- Single
the unscaled screen-relative Y coordinate on which to center the viewport
- animate
- Boolean
true to animate from the current viewport
center or false to set the center immediately
Returns
true on success, false on failure
- Attributes
Remarks
Sets the center of the magnified viewport.
<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 sets the center of full-screen magnification. To set the center of the specified magnifier, use #setMagnificationConfig instead.
This member is deprecated. Use #setMagnificationConfig(MagnificationConfig, boolean) 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.