Class DefaultAnnotationCreationInspectorController

  • All Implemented Interfaces:
    com.pspdfkit.ui.inspector.PropertyInspectorCoordinatorLayoutController.PropertyInspectorLifecycleListener , com.pspdfkit.ui.inspector.PropertyInspectorTitleButtonListener , com.pspdfkit.ui.inspector.annotation.AnnotationCreationInspectorController , com.pspdfkit.ui.special_mode.controller.AnnotationInspectorController

    
    public class DefaultAnnotationCreationInspectorController
    extends AbstractAnnotationInspectorController implements AnnotationCreationInspectorController, PropertyInspectorTitleButtonListener
                        

    Controller for annotation creation inspector. Meant to be used with .

    • Constructor Detail

      • DefaultAnnotationCreationInspectorController

        DefaultAnnotationCreationInspectorController(Context context, PropertyInspectorCoordinatorLayoutController coordinatorController)
        Parameters:
        context - The context.
        coordinatorController - Controller managing inspector coordinator layout.
    • Method Detail

      • displayScalePicker

         void displayScalePicker(boolean animate)

        Toggles between shown/hidden state of the annotation inspector and displays the measurements scale picker.

        Parameters:
        animate - Whether to animate the change.
      • onBackButtonClicked

         boolean onBackButtonClicked()

        Only active when we're in measurement scale mode (property inspector for the scale FAB)

        Returns:

        true if the click was consumed, otherwise false

      • hasAnnotationInspector

         boolean hasAnnotationInspector()

        Whether annotation inspector toolbar icon should be visible.

        Returns:

        true if the inspector toolbar icon should be visible, false otherwise.