AccessibilityService.MagnificationController.MagnificationRegion 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 region of the screen currently active for magnification.
public Android.Graphics.Region MagnificationRegion { [Android.Runtime.Register("getMagnificationRegion", "()Landroid/graphics/Region;", "", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getMagnificationRegion", "()Landroid/graphics/Region;", "", ApiSince=24)>]
member this.MagnificationRegion : Android.Graphics.Region
Property Value
the region of the screen currently active for magnification, or an empty region if magnification is not active.
- Attributes
Remarks
Returns the region of the screen currently active for magnification. Changes to magnification scale and center only affect this portion of the screen. The rest of the screen, for example input methods, cannot be magnified. This region is relative to the unscaled screen and is independent of the scale and center point.
The returned region will be empty if magnification is not active. Magnification is active if magnification gestures are enabled or if a service is running that can control magnification.
<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 an empty region.
<strong>Note:</strong> This legacy API gets the magnification region of full-screen magnification. To get the magnification region of the current controlling magnifier, use #getCurrentMagnificationRegion()
instead.
This member is deprecated. Use #getCurrentMagnificationRegion()
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.