<!-- Public documentation export; not library implementation source. -->
# ISubscription

[Integration guide](https://docs.lumencharts.com/charting-library/getting-started/lifecycle) · [Reference index](https://docs.lumencharts.com/charting-library/api/)

Public contract reference. This declaration describes types and callback shapes; availability is constrained by the linked integration guide and the runtime capability. Legacy product-specific fields are not a promise of implementation.

## subscribe {#subscribe}

```ts
subscribe(obj: object | null, member: TFunc, singleshot?: boolean): void;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `obj` | `object &#124; null` | Yes |
| `member` | `TFunc` | Yes |
| `singleshot` | `boolean` | No |

## unsubscribe {#unsubscribe}

```ts
unsubscribe(obj: object | null, member: TFunc): void;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `obj` | `object &#124; null` | Yes |
| `member` | `TFunc` | Yes |

## unsubscribeAll {#unsubscribeall}

```ts
unsubscribeAll(obj: object | null): void;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `obj` | `object &#124; null` | Yes |

---
Documentation page: https://docs.lumencharts.com/charting-library/api/ISubscription
