# ActionURI

## Content

[**DsPdfJS API v9.1.3**](../README)

***

[DsPdfJS API](../globals) / ActionURI

# Class: ActionURI

Represents an action that causes navigation to a specified URI.

## Extends

- [`ActionBase`](ActionBase)

## Constructors

### Constructor

> **new ActionURI**(`om`, `uri?`): `ActionURI`

Creates a new ActionURI.

#### Parameters

##### om

[`ObjectManager`](ObjectManager)

[ObjectManager](ObjectManager) that controls the lifetime of the ActionURI.

##### uri?

`string`

The URI to navigate to.

#### Returns

`ActionURI`

#### Overrides

`ActionBase.constructor`

### Constructor

> **new ActionURI**(`uri?`): `ActionURI`

Creates a new ActionURI.

#### Parameters

##### uri?

`string`

The URI to navigate to.

#### Returns

`ActionURI`

#### Overrides

`ActionBase.constructor`

## Accessors

### id

#### Get Signature

> **get** **id**(): `number`

Gets the reference to the object.

##### Returns

`number`

#### Inherited from

[`ActionBase`](ActionBase).[`id`](ActionBase#id)

***

### isMap

#### Get Signature

> **get** **isMap**(): `boolean`

Gets or sets a value indicating whether to track the mouse position when the URI is resolved.

This property applies only to actions triggered by the user's clicking an annotation;
it is ignored for actions associated with [OutlineNode](OutlineNode) or with a [PdfDocument#openAction](PdfDocument#openaction)
property.

##### Returns

`boolean`

#### Set Signature

> **set** **isMap**(`value`): `void`

Gets or sets a value indicating whether to track the mouse position when the URI is resolved.

This property applies only to actions triggered by the user's clicking an annotation;
it is ignored for actions associated with [OutlineNode](OutlineNode) or with a [PdfDocument#openAction](PdfDocument#openaction)
property.

##### Parameters

###### value

`boolean`

##### Returns

`void`

***

### om

#### Get Signature

> **get** **om**(): [`ObjectManager`](ObjectManager)

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

#### Inherited from

[`ActionBase`](ActionBase).[`om`](ActionBase#om)

***

### uri

#### Get Signature

> **get** **uri**(): `string` \| `null`

Gets or sets the URI to navigate.

##### Returns

`string` \| `null`

#### Set Signature

> **set** **uri**(`value`): `void`

Gets or sets the URI to navigate.

##### Parameters

###### value

`string` | `null`

##### Returns

`void`

## Methods

### free()

> **free**(): `void`

Detaches the object from the [ObjectManager](ObjectManager) and deallocates its memory, if possible.

#### Returns

`void`

#### Inherited from

[`ActionBase`](ActionBase).[`free`](ActionBase#free)

***

### rebind()

> **rebind**(`omTo`): `void`

Rebinds the object from the current [ObjectManager](ObjectManager) to the specified one.

#### Parameters

##### omTo

[`ObjectManager`](ObjectManager)

The new [ObjectManager](ObjectManager) for the object.

#### Returns

`void`

#### Inherited from

[`ActionBase`](ActionBase).[`rebind`](ActionBase#rebind)
