---
url: https://cri-middleware.github.io/SSPlayerForWeb/api/@spritestudio/ssplayer-core/classes/InstanceSlotHandle.md
---
# Class: InstanceSlotHandle

Defined in: [src/SlotHandles.ts:8](https://github.com/cri-middleware/SSPlayerForWeb/blob/eb9d544908210befb40d3729ed6fde7adc44f61a/packages/ssplayer-core/src/SlotHandles.ts#L8)

Owning JS handle for a WASM `SSRuntimeInstanceSlot`. `destroy()` frees the
WASM handle and cancels the GC finalizer; the FinalizationRegistry is a
safety net for handles that are dropped without an explicit `destroy()`.

## Constructors

### Constructor

> **new InstanceSlotHandle**(): `InstanceSlotHandle`

Defined in: [src/SlotHandles.ts:11](https://github.com/cri-middleware/SSPlayerForWeb/blob/eb9d544908210befb40d3729ed6fde7adc44f61a/packages/ssplayer-core/src/SlotHandles.ts#L11)

#### Returns

`InstanceSlotHandle`

## Properties

### raw

> **raw**: [`SSRuntimeInstanceSlot`](SSRuntimeInstanceSlot.md)

Defined in: [src/SlotHandles.ts:9](https://github.com/cri-middleware/SSPlayerForWeb/blob/eb9d544908210befb40d3729ed6fde7adc44f61a/packages/ssplayer-core/src/SlotHandles.ts#L9)

## Methods

### destroy()

> **destroy**(): `void`

Defined in: [src/SlotHandles.ts:16](https://github.com/cri-middleware/SSPlayerForWeb/blob/eb9d544908210befb40d3729ed6fde7adc44f61a/packages/ssplayer-core/src/SlotHandles.ts#L16)

#### Returns

`void`
