Share via


Magnifier.Position Property

Definition

Returns the top left coordinates of the magnifier, relative to the main application window.

public Android.Graphics.Point? Position { [Android.Runtime.Register("getPosition", "()Landroid/graphics/Point;", "", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getPosition", "()Landroid/graphics/Point;", "", ApiSince=29)>]
member this.Position : Android.Graphics.Point

Property Value

the top left coordinates of the magnifier

Attributes

Remarks

Returns the top left coordinates of the magnifier, relative to the main application window. They will be determined by the coordinates of the last #show(float, float) or #show(float, float, float, float) call, adjusted to take into account any potential clamping behavior. The method can be used immediately after a #show call to find out where the magnifier will be positioned. However, the position of the magnifier will not be updated visually in the same frame, due to the async nature of the content copying and of the magnifier rendering. The method will return null if #show has not yet been called, or if the last operation performed was a #dismiss.

Java documentation for android.widget.Magnifier.getPosition().

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