|
|
| e_OpTypePause |
| | Pause any rendition being played in association with related screen annotation. If no rendition is being played, there is no effect.
|
| |
|
| e_OpTypePlay |
| | Play rendition (which is specified in rendition action), associating it with related screen annotation. If a rendition is already associated with the annotation, resume that rendition if it is paused; otherwise, do nothing.
|
| |
|
| e_OpTypeResume |
| | Resume any rendition being played in association with related screen annotation. If no rendition is being played or the rendition is not paused, there is no effect.
|
| |
|
| static | Create (document, action_type) |
| | Create a new action, for specified action type. More...
|
| |
Rendition action is to control the playing of multimedia content. (For more details, please refer to <PDF Reference 1.7> P668 "Rendition Actions") Class RenditionAction is derived from Action and offers functions to get/set rendition action data.
- See also
- Action
- Examples
- /Users/ec2-user/gitlab-runner/builds/E-xKdhDo/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.
◆ constructor()
| RenditionAction.constructor |
( |
action |
| ) |
|
Constructor, with parent class object.
- Parameters
-
| [in] | action | Parent class object. |
◆ GetJavaScript()
| RenditionAction.GetJavaScript |
( |
| ) |
|
Get the JavaScript script to be executed.
As a useful rendition action, it should contain a JavaScript script to be executed or is specified an operation type to be performed when triggered. If both JavaScript script and operation type exist, application should execute JavaScript; if application is unable to execute JavaScript script, then perform as operation type defines. If no JavaScript script and operation type is invalid, that means the action is invalid.
- Returns
- A JavaScript script.
◆ GetOperationType()
| RenditionAction.GetOperationType |
( |
| ) |
|
Get the operation type of current rendition action when being triggered.
As a useful rendition action, it should contain a JavaScript script to be executed or is specified an operation type to be performed when triggered. If both JavaScript script and operation type exist, application should execute JavaScript; if application is unable to execute JavaScript script, then perform as operation type defines. If no JavaScript script and operation type is invalid, that means the action is invalid.
- Returns
- Operation type. Please refer to values starting from RenditionAction.e_OpTypeNone and this would be one of these values.
◆ GetRendition()
| RenditionAction.GetRendition |
( |
index |
| ) |
|
Get a rendition by index.
- Parameters
-
- Returns
- A rendition object.
◆ GetRenditionCount()
| RenditionAction.GetRenditionCount |
( |
| ) |
|
Get the count of rendition objects.
- Returns
- The count of rendition objects.
◆ GetScreenAnnot()
| RenditionAction.GetScreenAnnot |
( |
| ) |
|
Get the related screen annotation.
- Returns
- A screen annotation object.
◆ InsertRendition()
| RenditionAction.InsertRendition |
( |
rendition |
, |
|
|
index |
|
|
) |
| |
Insert a rendition to current rendition action, at the position specified by index.
Rendition object is necessary for a rendition action when operation type is RenditionAction.e_OpTypeAssociate or RenditionAction.e_OpTypeAssociate.
- Parameters
-
| [in] | rendition | A rendition object to be inserted. |
| [in] | index | Index that specifies where to insert the rendition object. If index is below 0 or bigger than (count-1), the input rendition will be inserted to be the end. count is returned by function RenditionAction.GetRenditionCount. |
- Returns
- None.
◆ RemoveRendition()
| RenditionAction.RemoveRendition |
( |
rendition |
| ) |
|
Remove a rendition object from current rendition action.
- Parameters
-
| [in] | rendition | A rendition object to be removed from current rendition action. |
- Returns
- None.
◆ SetJavaScript()
| RenditionAction.SetJavaScript |
( |
script |
| ) |
|
Set the JavaScript script to be executed.
As a useful rendition action, it should contain a JavaScript script to be executed or is specified an operation type to be performed when triggered. If both JavaScript script and operation type exist, application should execute JavaScript; if application is unable to execute JavaScript script, then perform as operation type defines. If no JavaScript script and operation type is invalid, that means the action is invalid.
- Parameters
-
| [in] | script | A JavaScript script to be set. |
- Returns
- None.
◆ SetOperationType()
| RenditionAction.SetOperationType |
( |
op_type |
| ) |
|
Set the operation type of current rendition action when being triggered.
As a useful rendition action, it should contain a JavaScript script to be executed or is specified an operation type to be performed when triggered. If both JavaScript script and operation type exist, application should execute JavaScript; if application is unable to execute JavaScript script, then perform as operation type defines. If no JavaScript script and operation type is invalid, that means the action is invalid.
- Parameters
-
- Returns
- None.
◆ SetScreenAnnot()
| RenditionAction.SetScreenAnnot |
( |
screen_annot |
| ) |
|
Set related screen annotation.
This property is necessary when operation type is set with valid value.
- Parameters
-
| [in] | screen_annot | A screen annotation object to be set as related screen annotation. |
- Returns
- None.
◆ e_OpTypeAssociate
| RenditionAction.e_OpTypeAssociate |
|
static |
Associate rendition to related screen annotation.
If no rendition is associated with related screen annotation, play rendition (which is specified in rendition action), associating it with the annotation. If a rendition is already associated with related screen annotation, it is stopped, and the new rendition (which is specified in rendition action) is associated with the annotation.
◆ e_OpTypeNone
| RenditionAction.e_OpTypeNone |
|
static |
Enumeration for operation type to perform when the rendition action is triggered.
Values of this enumeration should be used alone.
No operation is specified.