HideAction

class HideAction(val annotationReferences: List<AnnotationReference>, hideTargets: Boolean, subActions: List<Action> = emptyList()) : Action

A hide action hides or shows one or more annotations on the screen by setting or clearing their hidden flags.

Constructors

Link copied to clipboard
constructor(annotationReferences: List<AnnotationReference>, hideTargets: Boolean, subActions: List<Action> = emptyList())
constructor(annotations: List<Annotation>? = null, formElements: List<FormElement>? = null, shouldHide: Boolean, subActions: List<Action> = emptyList())

Types

Link copied to clipboard
object Companion

Companion object containing factory methods for HideAction.

Properties

Link copied to clipboard
val annotationReferences: List<AnnotationReference>

The list of references to annotations that will be shown or hidden.

Link copied to clipboard
open override val type: ActionType

Returns type of action to make down-casting easier.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares this hide action to the specified object for equality.

Link copied to clipboard
fun getAnnotationsAsync(document: PdfDocument): Observable<List<Annotation>>

Resolves target annotations. These annotation will be shown/hidden when action is executed.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for this hide action.

Link copied to clipboard

Returns whether this action should hide or show the target annotations.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of this hide action for debugging purposes.