Language

PdfRendererPreV.Page.GetTopPageObjectAtPosition(PointF, Int32[]) Method

Definition

Retrieves the top-most page object at a specified position.

[Android.Runtime.Register("getTopPageObjectAtPosition", "(Landroid/graphics/PointF;[I)Landroid/util/Pair;", "", ApiSince=36)]
public Android.Util.Pair? GetTopPageObjectAtPosition(Android.Graphics.PointF point, int[] types);
[<Android.Runtime.Register("getTopPageObjectAtPosition", "(Landroid/graphics/PointF;[I)Landroid/util/Pair;", "", ApiSince=36)>]
member this.GetTopPageObjectAtPosition : Android.Graphics.PointF * int[] -> Android.Util.Pair

Parameters

point
PointF

The coordinates (as a PointF) on the page to check for page objects.

types
Int32[]

An array of PdfPageObjectType.Type values. Only page objects whose types are included in this array will be considered. If multiple matching objects overlap at the specified point, only the one with the highest z-index will be returned. The order of types within this array does not influence the outcome. If this array is empty, known supported PdfPageObjectTypes will be considered.

Returns

A Pair containing: <ul> <li>An Integer representing the unique ID of the page object. <li>A PdfPageObject representing the found page object.</li> </ul> Returns null if no page object is found at the given position.

Attributes

Remarks

Retrieves the top-most page object at a specified position.

Java documentation for android.graphics.pdf.PdfRendererPreV.Page.getTopPageObjectAtPosition(android.graphics.PointF, int[]).

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