ui-router-devtools / ui-router-devtools / Recorder
Interface: Recorder
Defined in: ui-router-devtools/src/recorder.ts:28
A recording of one router's events, from record.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
dropped | readonly | number | Events discarded since recording began, by the ring buffer or by clear(). | ui-router-devtools/src/recorder.ts:34 |
events | readonly | readonly RouterEvent[] | The ring buffer's transition-scoped events, in order; the snapshots are in session() only. | ui-router-devtools/src/recorder.ts:32 |
routerId | readonly | string | The router's id on this page, shared by every recorder of that router. | ui-router-devtools/src/recorder.ts:30 |
Methods
clear()
ts
clear(): void;Defined in: ui-router-devtools/src/recorder.ts:38
Empties the ring buffer, counting its events in dropped; the snapshots stay.
Returns
void
session()
ts
session(redaction?): Session;Defined in: ui-router-devtools/src/recorder.ts:36
The recording as a session file; redaction defaults to param keys without their values, messages kept.
Parameters
| Parameter | Type |
|---|---|
redaction? | Partial<Redaction> |
Returns
stop()
ts
stop(): void;Defined in: ui-router-devtools/src/recorder.ts:40
Stops recording and detaches from the router.
Returns
void
subscribe()
ts
subscribe(listener): () => void;Defined in: ui-router-devtools/src/recorder.ts:42
Calls listener with each event as it is recorded; the returned function unsubscribes.
Parameters
| Parameter | Type |
|---|---|
listener | (event) => void |
Returns
() => void