Interface AnnotationOverlayRenderStrategy
-
- All Implemented Interfaces:
public interface AnnotationOverlayRenderStrategy
Strategy that controls how annotations are rendered inside annotation overlay. You can inject implementation of this interface via setAnnotationOverlayRenderStrategy.
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 and overlay annotations via setOverlaidAnnotations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
AnnotationOverlayRenderStrategy.Strategy
Enum with possible annotation overlay rendering strategies.
-
Method Summary
Modifier and Type Method Description abstract AnnotationOverlayRenderStrategy.Strategy
getOverlayRenderStrategy(@NonNull() Annotation annotation)
Returns overlay render strategy that should be used for rendering specific annotation. -
-
Method Detail
-
getOverlayRenderStrategy
@NonNull() abstract AnnotationOverlayRenderStrategy.Strategy getOverlayRenderStrategy(@NonNull() Annotation 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.
- Parameters:
annotation
- Annotation that is being rendered in overlay.- Returns:
Annotation overlay strategy to use.
-
-
-
-