public class

DefaultAnnotationEditingInspectorController

extends AbstractPropertyInspectorController
implements AnnotationEditingInspectorController AnnotationInspectorController
java.lang.Object
   ↳ com.pspdfkit.ui.inspector.AbstractPropertyInspectorController
     ↳ com.pspdfkit.ui.inspector.annotation.DefaultAnnotationEditingInspectorController

Class Overview

Annotation inspector for annotation editing. Meant to be used with AnnotationEditingController.

Summary

Public Constructors
DefaultAnnotationEditingInspectorController(Context context, PropertyInspectorCoordinatorLayoutController coordinatorController)
Public Methods
void bindAnnotationEditingController(AnnotationEditingController controller)
Binds controller for managing annotation editing mode.
AnnotationEditingController getAnnotationEditingController()
Returns AnnotationEditingController we are currently bound to.
boolean hasAnnotationInspector()
Whether annotation inspector toolbar icon should be visible.
void hideAnnotationInspector(boolean animate)
Hides annotation inspector.
boolean isAnnotationInspectorVisible()
Check if inspector is currently displayed.
void onPreparePropertyInspector(PropertyInspector inspector)
Called when PropertyInspector is prepared to be displayed in the PropertyInspectorCoordinatorLayout.
void showAnnotationInspector(boolean animate)
Show annotation inspector.
void toggleAnnotationInspector(boolean animate)
Toggles between shown/hidden state of the annotation inspector.
void unbindAnnotationEditingController()
Unbinds controller for managing annotation editing mode.
Protected Methods
boolean isBoundToController()
Called to test if inspector controller is bound to its editing controller.
[Expand]
Inherited Methods
From class com.pspdfkit.ui.inspector.AbstractPropertyInspectorController
From class java.lang.Object
From interface com.pspdfkit.ui.inspector.PropertyInspectorCoordinatorLayoutController.PropertyInspectorLifecycleListener
From interface com.pspdfkit.ui.inspector.annotation.AnnotationEditingInspectorController
From interface com.pspdfkit.ui.special_mode.controller.AnnotationInspectorController

Public Constructors

public DefaultAnnotationEditingInspectorController (Context context, PropertyInspectorCoordinatorLayoutController coordinatorController)

Parameters
context The context.
coordinatorController Controller managing inspector coordinator layout.

Public Methods

public void bindAnnotationEditingController (AnnotationEditingController controller)

Binds controller for managing annotation editing mode.

Parameters
controller Annotation editing mode controller provided when entering annotation editing mode.

public AnnotationEditingController getAnnotationEditingController ()

Returns AnnotationEditingController we are currently bound to.

public boolean hasAnnotationInspector ()

Whether annotation inspector toolbar icon should be visible.

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

public void hideAnnotationInspector (boolean animate)

Hides annotation inspector.

Parameters
animate Whether to animate the change.

public boolean isAnnotationInspectorVisible ()

Check if inspector is currently displayed.

Returns
  • True if inspector is showing to the user, false otherwise.

public void onPreparePropertyInspector (PropertyInspector inspector)

Called when PropertyInspector is prepared to be displayed in the PropertyInspectorCoordinatorLayout. Here you can change the inspector views.

Parameters
inspector Property inspector prepared for displaying in the coordinator.

public void showAnnotationInspector (boolean animate)

Show annotation inspector.

Parameters
animate Whether to animate the change.

public void toggleAnnotationInspector (boolean animate)

Toggles between shown/hidden state of the annotation inspector.

Parameters
animate Whether to animate the change.

public void unbindAnnotationEditingController ()

Unbinds controller for managing annotation editing mode.

Protected Methods

protected boolean isBoundToController ()

Called to test if inspector controller is bound to its editing controller.