Class RedactionView

  • All Implemented Interfaces:
    android.graphics.drawable.Drawable.Callback , android.view.KeyEvent.Callback , android.view.ViewManager , android.view.ViewParent , android.view.accessibility.AccessibilityEventSource

    
    public class RedactionView
    extends FrameLayout
                        

    Responsible for the UI used to apply redactions.

    • Method Detail

      • setRedactionButtonVisible

         void setRedactionButtonVisible(boolean visible, boolean animate)

        Shows the button used to open the redaction menu.

        Parameters:
        visible - true to make the button visible, false to hide it again.
        animate - true to perform an animation when showing it, false otherwise.
      • isRedactionButtonExpanded

         boolean isRedactionButtonExpanded()

        Returns true if redaction button is visible and expanded.

        Returns:

        true if redaction button is visible and expanded.

      • isButtonRedactionButtonVisible

         boolean isButtonRedactionButtonVisible()

        Returns true if redaction button is visible.

        Returns:

        true if redaction button is visible.

      • setBottomOffset

         void setBottomOffset(int bottomOffset)

        Sets the bottom offset for the redaction button, used to make sure it doesn't overlay any other view.

        Parameters:
        bottomOffset - The offset to apply from the bottom in px.
      • getRedactionButtonWidth

         int getRedactionButtonWidth()

        Returns the width in pixels of the redaction button.

        Returns:

        the width in pixels of the redaction button.

      • isRedactionAnnotationPreviewEnabled

         boolean isRedactionAnnotationPreviewEnabled()

        Returns whether the redaction annotation preview mode is enabled or not.

        Returns:

        true if redaction annotation preview mode is enabled, false otherwise.

      • setRedactionAnnotationPreviewEnabled

         void setRedactionAnnotationPreviewEnabled(boolean enable)

        Enables or disables redaction annotation preview mode.

        Parameters:
        enable - true to show redaction annotations as redacted, false to show them as marks.