nutrient
Toggle table of contents
11.2.1
Nutrient
Target filter
Nutrient
Switch theme
Search in API
Skip to content
nutrient
nutrient
/
com.pspdfkit.bookmarks
/
Bookmark
Bookmark
open
class
Bookmark
:
Comparable
<
Bookmark
>
Represents a bookmark in a PDF document.
Members
Constructors
Bookmark
Link copied to clipboard
constructor
(
@
IntRange
(
from
=
0
)
pageIndex
:
Int
)
Creates a new bookmark pointing to a page with generated UUID.
constructor
(
@
Nullable
name
:
String
,
@
IntRange
(
from
=
0
)
pageIndex
:
Int
)
Creates a new bookmark pointing to a page with generated UUID.
constructor
(
@
NonNull
uuid
:
String
,
@
Nullable
name
:
String
,
@
IntRange
(
from
=
0
)
pageIndex
:
Int
)
Creates a new bookmark pointing to a page.
Properties
is
Dirty
Link copied to clipboard
open
val
isDirty
:
Boolean
Whether this bookmark has been modified since the document was last saved.
name
Link copied to clipboard
@
Nullable
@get:
Nullable
open
var
name
:
String
The human-readable display name of this bookmark.
page
Index
Link copied to clipboard
@
Nullable
@
IntRange
(
from
=
0
)
@get:
Nullable
val
pageIndex
:
Integer
The zero-indexed page number this bookmark points to, or
null
for non-page targets.
sort
Key
Link copied to clipboard
@
Nullable
@get:
Nullable
open
val
sortKey
:
Integer
Handles sorting of this bookmark.
uuid
Link copied to clipboard
@
NonNull
@get:
NonNull
val
uuid
:
String
The unique identifier for this bookmark within the document.
Functions
clear
Dirty
Link copied to clipboard
open
fun
clearDirty
(
)
Marks bookmark not dirty.
compare
To
Link copied to clipboard
open
fun
compareTo
(
@
Nullable
bookmark
:
Bookmark
)
:
Int
Compares this bookmark with another bookmark for ordering.
equals
Link copied to clipboard
open
fun
equals
(
o
:
Any
)
:
Boolean
Compares this bookmark with another object for equality.
hash
Code
Link copied to clipboard
open
fun
hashCode
(
)
:
Int
Returns a hash code value for this bookmark based on its UUID.
set
Sort
Key
Link copied to clipboard
open
fun
setSortKey
(
sortKey
:
Int
)
Sets an integer to determine bookmark sort order.
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String
Returns a string representation of this bookmark including its UUID, page index, name, and sort key.