public final class

UriAction

extends Action
java.lang.Object
   ↳ com.pspdfkit.annotations.actions.Action
     ↳ com.pspdfkit.annotations.actions.UriAction

Class Overview

PDF Action representing a link to an external URI.

Summary

Public Constructors
UriAction(String uri)
Creates an instance of URI action from provided URI.
UriAction(String uri, List<Action> subActions)
Creates an instance of URI action from provided URI.
Public Methods
boolean equals(Object o)
ActionType getType()
Returns type of action to make down-casting easier.
String getUri()
Target URI.
int hashCode()
String toString()
[Expand]
Inherited Methods
From class com.pspdfkit.annotations.actions.Action
From class java.lang.Object

Public Constructors

public UriAction (String uri)

Creates an instance of URI action from provided URI.

Parameters
uri Uri describing the action's target.

public UriAction (String uri, List<Action> subActions)

Creates an instance of URI action from provided URI.

Parameters
uri Uri describing the action's target.
subActions List of sub-actions of this action.

Public Methods

public boolean equals (Object o)

public ActionType getType ()

Returns type of action to make down-casting easier.

Returns
  • Type of this action.

public String getUri ()

Target URI.

Returns
  • URI this action points to, or null.

public int hashCode ()

public String toString ()