java.lang.Object | |||
↳ | com.pspdfkit.annotations.actions.Action | ||
↳ | com.pspdfkit.annotations.actions.AbstractMediaAction | ||
↳ | com.pspdfkit.annotations.actions.RenditionAction |
A rendition action controls the playing of multimedia content.
Note: JavaScript actions are not supported.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | RenditionAction.RenditionActionType | Types of rendition actions. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object o) | ||||||||||
String |
getJavascript()
Returns a text string containing a JavaScript script to be executed when the action is
triggered.
| ||||||||||
RenditionAction.RenditionActionType |
getRenditionActionType()
Type of rendition action to be performed on the specified screen annotation (if any).
| ||||||||||
Maybe<ScreenAnnotation> |
getScreenAnnotationAsync(PdfDocument pdfDocument)
Returns screen annotation associated with this rendition action, asynchronously.
| ||||||||||
int |
getScreenAnnotationObjectNumber()
Returns the object number of the referenced screen annotation (if any).
| ||||||||||
ActionType |
getType()
Returns type of action to make down-casting easier.
| ||||||||||
int | hashCode() | ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Returns a text string containing a JavaScript script to be executed when the action is triggered. If rendition action type is valid, and screen annotation is specified, the javascript will be executed first and rendition action will be used as a fallback in case of unsuccessful script execution.
Type of rendition action to be performed on the specified screen annotation (if any).
Returns screen annotation associated with this rendition action, asynchronously.
pdfDocument | PDF document in which to look for the associated screen annotation. |
---|
Maybe
that either emits the requested annotation in
`onSuccess()` or terminates with `onCompleted()` or `onError()`.
Returns the object number of the referenced screen annotation (if any).
Returns type of action to make down-casting easier.