public abstract class

AbstractMediaAction

extends Action
java.lang.Object
   ↳ com.pspdfkit.annotations.actions.Action
     ↳ com.pspdfkit.annotations.actions.AbstractMediaAction
Known Direct Subclasses

Class Overview

Base class for media annotation related actions.

Summary

Protected Constructors
AbstractMediaAction(int annotationObjectNumber, List<Action> subActions)
Public Methods
boolean equals(Object o)
int hashCode()
Protected Methods
Maybe<Annotation> getAnnotationAsync(PdfDocument pdfDocument)
Returns the annotation associated with this action, asynchronously.
int getAnnotationObjectNumber()
Returns the object number of the target annotation (if any).
[Expand]
Inherited Methods
From class com.pspdfkit.annotations.actions.Action
From class java.lang.Object

Protected Constructors

protected AbstractMediaAction (int annotationObjectNumber, List<Action> subActions)

Public Methods

public boolean equals (Object o)

public int hashCode ()

Protected Methods

protected Maybe<Annotation> getAnnotationAsync (PdfDocument pdfDocument)

Returns the annotation associated with this action, asynchronously.

Parameters
pdfDocument PDF document in which to look for the associated rich media annotation.
Returns
  • An instance of Maybe that either emits the requested annotation in `onSuccess()` or terminates with `onCompleted()` or `onError()`.

protected int getAnnotationObjectNumber ()

Returns the object number of the target annotation (if any).

Returns
  • Referenced annotation object number.