AccessibilityService.MagnificationController.CurrentMagnificationRegion Property

Definition

Returns the region of the screen currently active for magnification if the controlling magnification is MagnificationConfig#MAGNIFICATION_MODE_FULLSCREEN.

public Android.Graphics.Region CurrentMagnificationRegion { [Android.Runtime.Register("getCurrentMagnificationRegion", "()Landroid/graphics/Region;", "", ApiSince=33)] get; }
[<get: Android.Runtime.Register("getCurrentMagnificationRegion", "()Landroid/graphics/Region;", "", ApiSince=33)>]
member this.CurrentMagnificationRegion : Android.Graphics.Region

Property Value

the magnification region of the currently controlling magnification

Attributes

Remarks

Returns the region of the screen currently active for magnification if the controlling magnification is MagnificationConfig#MAGNIFICATION_MODE_FULLSCREEN. Returns the region of screen projected on the magnification window if the controlling magnification is MagnificationConfig#MAGNIFICATION_MODE_WINDOW.

If the controlling mode is MagnificationConfig#MAGNIFICATION_MODE_FULLSCREEN, the returned region will be empty if the magnification is not active. And the magnification is active if magnification gestures are enabled or if a service is running that can control magnification.

If the controlling mode is MagnificationConfig#MAGNIFICATION_MODE_WINDOW, the returned region will be empty if the magnification is not activated.

<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.

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

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