Freigeben über


Magnifier.SourcePosition Property

Definition

Returns the top left coordinates of the magnifier source (i.

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

Property Value

the top left coordinates of the magnifier source

Attributes

Remarks

Returns the top left coordinates of the magnifier source (i.e. the view region going to be magnified and copied to the magnifier), relative to the window or surface the content is copied from. The content will be copied: - if the magnified view is a SurfaceView, from the surface backing it - otherwise, from the surface backing the main application window, and the coordinates returned will be relative to the main application window 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.getSourcePosition().

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