NoteAnnotation

Represents a note (shown as an icon) on the page.

Constructors

Link copied to clipboard
constructor(@IntRange(from = 0) pageIndex: Int, @NonNull annotationRect: RectF, @NonNull contents: String, @Nullable iconName: String)
Creates a new note annotation

Types

Link copied to clipboard
Denotes that a parameter must belong to on of these strings defined in NoteAnnotation: COMMENT, RIGHT_POINTER, RIGHT_ARROW, CHECK, CIRCLE, CROSS, INSERT, NEW_PARAGRAPH, NOTE, PARAGRAPH, HELP, STAR, KEY.

Properties

Link copied to clipboard
val CHECK: String = "Check"
Note annotation icon: checkmark.
Link copied to clipboard
val CIRCLE: String = "Circle"
Note annotation icon: circle shape.
Link copied to clipboard
val COMMENT: String = "Comment"
Note annotation icon: speech bubble for comments.
Link copied to clipboard
val CROSS: String = "Cross"
Note annotation icon: X or cross shape.
Link copied to clipboard
val HELP: String = "Help"
Note annotation icon: question mark for help.
Link copied to clipboard
val INSERT: String = "Insert"
Note annotation icon: caret for text insertion.
Link copied to clipboard
val KEY: String = "Key"
Note annotation icon: key shape.
Link copied to clipboard
val NEW_PARAGRAPH: String = "NewParagraph"
Note annotation icon: new paragraph marker.
Link copied to clipboard
val NOTE: String = "Note"
Note annotation icon: standard note icon.
Link copied to clipboard
val PARAGRAPH: String = "Paragraph"
Note annotation icon: paragraph marker.
Link copied to clipboard
val RIGHT_ARROW: String = "RightArrow"
Note annotation icon: arrow facing right.
Link copied to clipboard
val RIGHT_POINTER: String = "RightPointer"
Note annotation icon: pointer arrow facing right.
Link copied to clipboard
val STAR: String = "Star"
Note annotation icon: star shape.

Functions

Link copied to clipboard
Gets a copy of this annotation with the page index and object number reset.
Link copied to clipboard
Returns the name of the icon that should be displayed for this annotation.
Link copied to clipboard
Gets the annotation type of the annotation.
Link copied to clipboard
open fun isOpen(): Boolean
Checks if the popup of this annotation is opened.
Link copied to clipboard
open fun isResizable(): Boolean
Always returns false, since note annotations are not resizable.
Link copied to clipboard
Sets the name of the icon that should be displayed for this annotation.
Link copied to clipboard
open fun updateTransformationProperties(@NonNull newBoundingBox: RectF, @NonNull oldBoundingBox: RectF)
Annotations may override this method to transform their properties (i.e.