Package com.pspdfkit.ui.inspector
Class AbstractPropertyInspectorController
-
- All Implemented Interfaces:
-
com.pspdfkit.ui.inspector.PropertyInspectorCoordinatorLayoutController.PropertyInspectorLifecycleListener
public abstract class AbstractPropertyInspectorController implements PropertyInspectorCoordinatorLayoutController.PropertyInspectorLifecycleListener
Abstract base class for all inspector controllers. Handles state restoration and showing/hiding inspector with PropertyInspectorCoordinatorLayoutController.
-
-
Method Summary
Modifier and Type Method Description void
showInspector(boolean animate)
Shows inspector if it was not shown yet. void
hideInspector(boolean animate)
Hides inspector if it is shown. boolean
isInspectorVisible()
Returns true
when inspector is shown.void
onSaveInstanceState(@NonNull() Bundle outState)
Save property inspector state. void
onRestoreInstanceState(@NonNull() Bundle savedState)
Restore property inspector state. void
onPreparePropertyInspector(@NonNull() PropertyInspector inspector)
Called when PropertyInspector is prepared to be displayed in the . void
onDisplayPropertyInspector(@NonNull() PropertyInspector inspector)
Called when PropertyInspector is displayed in the . void
onRemovePropertyInspector(@NonNull() PropertyInspector inspector)
Called when PropertyInspector is removed from the . -
-
Method Detail
-
showInspector
void showInspector(boolean animate)
Shows inspector if it was not shown yet.
-
hideInspector
void hideInspector(boolean animate)
Hides inspector if it is shown.
-
isInspectorVisible
boolean isInspectorVisible()
Returns
true
when inspector is shown.
-
onSaveInstanceState
void onSaveInstanceState(@NonNull() Bundle outState)
Save property inspector state.
-
onRestoreInstanceState
void onRestoreInstanceState(@NonNull() Bundle savedState)
Restore property inspector state.
-
onPreparePropertyInspector
void onPreparePropertyInspector(@NonNull() PropertyInspector inspector)
Called when PropertyInspector is prepared to be displayed in the . Here you can change the inspector views.
- Parameters:
inspector
- Property inspector prepared for displaying in the coordinator.
-
onDisplayPropertyInspector
void onDisplayPropertyInspector(@NonNull() PropertyInspector inspector)
Called when PropertyInspector is displayed in the .
- Parameters:
inspector
- Property inspector that is displayed in the coordinator.
-
onRemovePropertyInspector
void onRemovePropertyInspector(@NonNull() PropertyInspector inspector)
Called when PropertyInspector is removed from the .
- Parameters:
inspector
- Property inspector that is removed from the coordinator.
-
-
-
-