PdfPageGotoLinkContent
class PdfPageGotoLinkContent : Parcelable
Represents the content associated with a goto link on a page in the PDF document. Goto Link is an internal navigation link which directs the user to a different location within the same pdf document
Summary
Nested classes |
|
Represents the content associated with the destination where a goto link is directing
|
Inherited constants |
From class Parcelable
Int |
CONTENTS_FILE_DESCRIPTOR
Descriptor bit used with describeContents() : indicates that the Parcelable object's flattened representation includes a file descriptor.
|
Int |
PARCELABLE_WRITE_RETURN_VALUE
Flag for use with writeToParcel : the object being written is a return value, that is the result of a function such as "Parcelable someFunction() ", "void someFunction(out Parcelable) ", or "void someFunction(inout Parcelable) ". Some implementations may want to release resources at this point.
|
|
Public constructors |
Creates a new instance of PdfPageGotoLinkContent using the bounds of the goto link and the destination where it is directing
|
Public constructors
PdfPageGotoLinkContent
PdfPageGotoLinkContent(
bounds: MutableList<RectF!>,
destination: PdfPageGotoLinkContent.Destination)
Creates a new instance of PdfPageGotoLinkContent
using the bounds of the goto link and the destination where it is directing
Exceptions |
java.lang.NullPointerException |
If bounds or destination is null. |
java.lang.IllegalArgumentException |
If the bounds list is empty. |
Public methods
describeContents
fun describeContents(): Int
getBounds
fun getBounds(): MutableList<RectF!>
Gets the bounds of a PdfPageGotoLinkContent
represented as a list of RectF
. Links which are spread across multiple lines will be surrounded by multiple RectF
in order of viewing.
Note: Each RectF
represents a bound of the goto link in a single line and defines the coordinates of its 4 edges (left, top, right and bottom) in points (1/72"). The developer will need to render the highlighter as well as intercept the touch events for functionalities such as clicking the link.
Return |
MutableList<RectF!> |
The bounds of the goto link. This value cannot be null . |
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
Properties