FileAnnotation

Represents an annotation associated with EmbeddedFile.

Constructors

Link copied to clipboard
constructor(@IntRange(from = 0) pageIndex: Int, @NonNull boundingBox: RectF, @NonNull embeddedFileSource: EmbeddedFileSource)
Creates a new file annotation.
constructor(@NonNull properties: AnnotationPropertyManager, markDirty: Boolean, @Nullable resourceId: String)
Intended for internal usage only.

Types

Link copied to clipboard
Denotes that a parameter must belong to on of these strings defined in : PUSH_PIN, PAPERCLIP, GRAPH, TAG.

Properties

Link copied to clipboard
val GRAPH: String = "Graph"
Link copied to clipboard
val PAPERCLIP: String = "Paperclip"
Link copied to clipboard
val PUSH_PIN: String = "PushPin"
Link copied to clipboard
val TAG: String = "Tag"

Functions

Link copied to clipboard
Returns a file set for this annotation.
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 isLocked(): Boolean
Check if the annotation is locked - i.e.
Link copied to clipboard
open fun isResizable(): Boolean
Check if the annotation is resizable, or if this is a non-resizable annotation.
Link copied to clipboard
open fun setFileSource(@NonNull fileSource: EmbeddedFileSource)
Replaces an embedded file associated with this annotation.
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.