com.pspdfkit.ui.rendering.AnnotationOverlayRenderStrategy |
Strategy that controls how annotations are rendered inside annotation overlay. You can inject
implementation of this interface via setAnnotationOverlayRenderStrategy(AnnotationOverlayRenderStrategy)
.
Note that this strategy is applied only to annotations that are displayed in annotation
overlay, See getOverlaidAnnotationTypes()
and getOverlaidAnnotations()
for annotation types and single annotations that have
overlay display enabled. You can configure overlaid annotation types via setOverlaidAnnotationTypes(EnumSet)
and overlay annotations via setOverlaidAnnotations(List)
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | AnnotationOverlayRenderStrategy.Strategy | Enum with possible annotation overlay rendering strategies. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract AnnotationOverlayRenderStrategy.Strategy |
getOverlayRenderStrategy(Annotation annotation)
Returns overlay render strategy that should be used for rendering specific annotation.
|
Returns overlay render strategy that should be used for rendering specific annotation. This
strategy defines how annotations that are displayed in overlay mode (i.e. views which are
rendered as views inside the activities view hierarchy) should be rendered. By default,
PSPDFKit uses PLATFORM_RENDERING
for all annotations. You can override this
behavior by setting a custom strategy using this method. for more information about the
available render strategies please see AnnotationOverlayRenderStrategy
.
annotation | Annotation that is being rendered in overlay. |
---|