toggle menu
pspdfkit
PSPDFKit
switch theme
search in API
pspdfkit
/
com.pspdfkit.annotations
/
SquareAnnotation
Square
Annotation
open
class
SquareAnnotation
:
ShapeAnnotation
Represents a square rendered on the page.
Members
Constructors
Square
Annotation
Link copied to clipboard
constructor
(
@
IntRange
(
from
=
0
)
pageIndex
:
Int
,
@
NonNull
rect
:
RectF
)
Creates a new square annotation.
constructor
(
@
IntRange
(
from
=
0
)
pageIndex
:
Int
,
@
NonNull
rect
:
RectF
,
@
NonNull
scale
:
Scale
,
@
NonNull
precision
:
MeasurementPrecision
)
Creates a measurement rectangular area annotation.
constructor
(
@
NonNull
properties
:
AnnotationPropertyManager
,
markDirty
:
Boolean
)
Intended for internal usage only
Functions
get
Type
Link copied to clipboard
@
NonNull
open
fun
getType
(
)
:
AnnotationType
Gets the annotation type of the annotation.