public class

DefaultAnnotationCreationInspectorController

extends AbstractPropertyInspectorController
implements AnnotationCreationInspectorController AnnotationInspectorController
java.lang.Object
   ↳ com.pspdfkit.ui.inspector.AbstractPropertyInspectorController
     ↳ com.pspdfkit.ui.inspector.annotation.DefaultAnnotationCreationInspectorController

Class Overview

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

Summary

Public Constructors
DefaultAnnotationCreationInspectorController(Context context, PropertyInspectorCoordinatorLayoutController coordinatorController)
Public Methods
void bindAnnotationCreationController(AnnotationCreationController controller)
Binds controller for managing annotation creation mode.
AnnotationCreationController getAnnotationCreationController()
Returns AnnotationCreationController 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 unbindAnnotationCreationController()
Unbinds controller for managing annotation creation 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.AnnotationCreationInspectorController
From interface com.pspdfkit.ui.special_mode.controller.AnnotationInspectorController

Public Constructors

public DefaultAnnotationCreationInspectorController (Context context, PropertyInspectorCoordinatorLayoutController coordinatorController)

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

Public Methods

public void bindAnnotationCreationController (AnnotationCreationController controller)

Binds controller for managing annotation creation mode.

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

public AnnotationCreationController getAnnotationCreationController ()

Returns AnnotationCreationController 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 unbindAnnotationCreationController ()

Unbinds controller for managing annotation creation mode.

Protected Methods

protected boolean isBoundToController ()

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