Package com.pspdfkit.ui.inspector
Interface PropertyInspectorController
-
- All Implemented Interfaces:
-
com.pspdfkit.ui.inspector.PropertyInspectorTitleButtonListener
public interface PropertyInspectorController implements PropertyInspectorTitleButtonListener
An interface to be implemented by PropertyInspector through which other components can control the property inspector.
-
-
Method Summary
Modifier and Type Method Description abstract void
showDetailView(@NonNull() View view, @Nullable() String title, boolean animate)
Replaces inspector contents with specific view
.abstract void
hideDetailView(boolean animate)
Hide view shown in showDetailView. abstract void
ensureFullyVisible(@NonNull() PropertyInspectorView inspectorView)
Scrolls to inspector view when its not fully visible in property inspector. abstract View
getVisibleDetailView()
Retrieve detail view that is currently visible in the property inspector. -
-
Method Detail
-
showDetailView
abstract void showDetailView(@NonNull() View view, @Nullable() String title, boolean animate)
Replaces inspector contents with specific
view
. Only single detail view can be visible at a time.- Parameters:
view
- View to show.title
- Optional inspector title that will be displayed when detail view is visible.animate
- True to animate transition, false to change immediately.
-
hideDetailView
abstract void hideDetailView(boolean animate)
Hide view shown in showDetailView. This will restore previous inspector contents.
- Parameters:
animate
- True to animate transition, false to change immediately.
-
ensureFullyVisible
abstract void ensureFullyVisible(@NonNull() PropertyInspectorView inspectorView)
Scrolls to inspector view when its not fully visible in property inspector.
- Parameters:
inspectorView
- Property inspector view to scroll to.
-
getVisibleDetailView
@Nullable() abstract View getVisibleDetailView()
Retrieve detail view that is currently visible in the property inspector.
- Returns:
Visible detail view or null if no detail view is visible right now.
-
-
-
-