# ObjectManager

## Content

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

***

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

# Class: ObjectManager

Represents an object manager that controls the lifetime of other objects.

## Constructors

### Constructor

> **new ObjectManager**(): `ObjectManager`

Initializes a new instance of ObjectManager.

#### Returns

`ObjectManager`

## Accessors

### id

#### Get Signature

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

Gets the object manager ID.

##### Returns

`number`

***

### stacked

#### Get Signature

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

Indicates whether the object manager was created with the [pushObjectManager](../functions/pushObjectManager) method or the [withObjectManager](../functions/withObjectManager) decorator.

##### Returns

`boolean`

## Methods

### checkAlive()

> **checkAlive**(): `void`

Checks if the ObjectManager instance has not yet been disposed.

#### Returns

`void`

***

### dispose()

> **dispose**(): `void`

Disposes the ObjectManager instance.

#### Returns

`void`
