Class SwitchInspectorView

  • All Implemented Interfaces:
    android.graphics.drawable.Drawable.Callback , android.view.KeyEvent.Callback , android.view.ViewManager , android.view.ViewParent , android.view.accessibility.AccessibilityEventSource , com.pspdfkit.ui.inspector.PropertyInspectorView

    
    public class SwitchInspectorView
    extends FrameLayout implements PropertyInspectorView
                        

    Inspector component for a switch

    • Constructor Detail

      • SwitchInspectorView

        SwitchInspectorView(Context context, String label, boolean defaultValue, SwitchInspectorView.SwitchListener listener)
        Construct switch picker.
        Parameters:
        context - The context to use.
        defaultValue - Default switch units on/off setting.
        listener - Listener for precision picker changes.
    • Method Detail

      • unbindController

         void unbindController()

        Unbind from property inspector controller.

      • getPropertyInspectorMaxHeight

         int getPropertyInspectorMaxHeight()

        Returns maximum height that this view with all its detail views will occupy.

        Returns:

        Hint for the maximum inspector height or 0 if no max height is specified.

      • getSuggestedHeight

         int getSuggestedHeight()

        Returns best height of this view when shown in inspector. This is used to suggest initial height to inspector parent.

        Returns:

        Hint for the view height after being shown in inspector.