# ImageViewerPluginReference

## Content

# Interface: ImageViewerPluginReference

Defines the interface for plugins used by `GcImageViewer` and `DsImageViewer`.

The plugin system is now intended for **internal use only**.
Starting from version 9.0, only official plugins developed and distributed
as part of the product are supported.

Custom or third-party plugins are no longer supported and may not function properly.

Internal plugins will continue to use this interface to extend viewer functionality.

## Properties

### id

```ts
id: PluginType;
```

Unique plug-in identifier.

## Methods

### initialize()

```ts
initialize(viewer): void;
```

The method is called when the GcImageViewer component is initialized.

#### Parameters

##### viewer

[`ImageViewerAPI`](ImageViewerAPI)

#### Returns

`void`

***

### dispose()

```ts
dispose(): void;
```

The method is called when the DsImageViewer component is about to be disposed.

#### Returns

`void`
