# PluginsApi

Canonical page: https://www.adaptabletools.com/docs/reference/pluginsapi

The loaded plugins, and the OpenFin, ipushpull and interop.io plugin APIs.

```ts title="TypeScript"
export interface PluginsApi 
```

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [getInteropioPluginApi()](https://www.adaptabletools.com/docs/reference/pluginsapi.md#getinteropiopluginapi) | [`InteropioPluginApi`](https://www.adaptabletools.com/docs/reference/interopiopluginapi.md) | Returns Interopio API class in Adaptable API |
| [getipushpullPluginApi()](https://www.adaptabletools.com/docs/reference/pluginsapi.md#getipushpullpluginapi) | [`IPushPullApi`](https://www.adaptabletools.com/docs/reference/ipushpullapi.md) | Returns ipushpull API class in Adaptable API |
| [getOpenFinPluginApi()](https://www.adaptabletools.com/docs/reference/pluginsapi.md#getopenfinpluginapi) | [`OpenFinApi`](https://www.adaptabletools.com/docs/reference/openfinapi.md) | Returns OpenFin API class in Adaptable API |
| [getPluginsState()](https://www.adaptabletools.com/docs/reference/pluginsapi.md#getpluginsstate) | `PluginsState` | Retrieves the Plugin State (internal only) |
| [getPluginState(pluginId)](https://www.adaptabletools.com/docs/reference/pluginsapi.md#getpluginstate) | `any` | Gets the State for a given Plugin |
| [registerPlugin(pluginId, initialPluginState)](https://www.adaptabletools.com/docs/reference/pluginsapi.md#registerplugin) | `void` | Registers a Plugin (internal method) |
| [setPluginState(pluginId, pluginState)](https://www.adaptabletools.com/docs/reference/pluginsapi.md#setpluginstate) | `void` | Sets the initial state for a given plugin (internal method) |

## Method Details

### getInteropioPluginApi

Returns Interopio API class in Adaptable API

```ts title="TypeScript"
getInteropioPluginApi(): InteropioPluginApi;
```

###### Returns

 Interopio API class in Adaptable API

[`InteropioPluginApi`](https://www.adaptabletools.com/docs/reference/interopiopluginapi.md)

### getipushpullPluginApi

Returns ipushpull API class in Adaptable API

```ts title="TypeScript"
getipushpullPluginApi(): IPushPullApi;
```

###### Returns

 Ipushpull API class in Adaptable API

[`IPushPullApi`](https://www.adaptabletools.com/docs/reference/ipushpullapi.md)

### getOpenFinPluginApi

Returns OpenFin API class in Adaptable API

```ts title="TypeScript"
getOpenFinPluginApi(): OpenFinApi;
```

###### Returns

 OpenFin API class in Adaptable API

[`OpenFinApi`](https://www.adaptabletools.com/docs/reference/openfinapi.md)

### getPluginsState

Retrieves the Plugin State (internal only)

```ts title="TypeScript"
getPluginsState(): PluginsState;
```

###### Returns

 The Plugin State (internal only)

`PluginsState`

### getPluginState

Gets the State for a given Plugin

```ts title="TypeScript"
getPluginState(pluginId: string): any;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| pluginId | `string` | plugin state to retrieve |

###### Returns

 The State for a given Plugin

`any`

### registerPlugin

Registers a Plugin (internal method)

```ts title="TypeScript"
registerPlugin(pluginId: string, initialPluginState: any): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| pluginId | `string` | Plugin to register |
| initialPluginState | `any` | any state the Plugin requires |

###### Returns

`void`

### setPluginState

Sets the initial state for a given plugin (internal method)

```ts title="TypeScript"
setPluginState(pluginId: string, pluginState: any): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| pluginId | `string` | Plugin to set state for |
| pluginState | `any` | State to set |

###### Returns

`void`
