---
url: https://cri-middleware.github.io/SSPlayerForReactNative/api/interfaces/SsLiveHandles.md
---
# Interface: SsLiveHandles

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:330](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L330)

How many native handles are alive right now — the leak check, made observable.

A handle that outlives
its player has no symptom on the JS side at all. It shows up as memory the
Brain never gives back, which on a simulator is invisible and on a device is
a crash several minutes later.

A count, not a byte total, because that is what can be checked exactly: run a
load/dispose cycle N times and both numbers must come back to where they
started. Anything else is a leak, and *which* number stayed high says where —
a stuck `contexts` is a player that was not disposed, a stuck `resources` with
`contexts` back at baseline is a `.ssab` released out of order.

Counted on the C++ side rather than in TypeScript on purpose: the whole
question is whether the native object went away, and only the native
destructor knows that.

## Properties

### contexts

> **contexts**: `number`

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:334](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L334)

Live `SsContext`s — one per player that has not been released.

***

### resources

> **resources**: `number`

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:332](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L332)

Live `SsResource`s — one per loaded `.ssab` that has not been released.
