Bookmark

constructor(@IntRange(from = 0) pageIndex: Int)

Creates a new bookmark pointing to a page with generated UUID.

Parameters

pageIndex

0-indexed page index to which this bookmark points to.


constructor(@Nullable name: String, @IntRange(from = 0) pageIndex: Int)

Creates a new bookmark pointing to a page with generated UUID.

Parameters

name

Human readable name of the bookmark to be displayed in the UI. May be null.

pageIndex

0-indexed page index to which this bookmark points to.


constructor(@NonNull uuid: String, @Nullable name: String, @IntRange(from = 0) pageIndex: Int)

Creates a new bookmark pointing to a page.

Parameters

uuid

Unique ID of the bookmark in the document. A document cannot contain multiple bookmarks with the same UUID.

name

Human readable name of the bookmark to be displayed in the UI. May be null.

pageIndex

0-indexed page index to which this bookmark points to.