---
url: https://lit-ui-router.dev/reference/ui-router-devtools/define/interfaces/UIRouterDevtools.md
---
[ui-router-devtools](../../index.md) / [define](../index.md) / UIRouterDevtools

# Interface: UIRouterDevtools

Defined in: [ui-router-devtools/src/ui-router-devtools.ts:10](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/ui-router-devtools.ts#L10)

\<ui-router-devtools>: a pill that opens a panel of the router's states, transitions and config.

## Extends

* `LitElement`

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
|  `history` | `public` | `number` | How many transitions the log keeps; the attribute is `history`. | [ui-router-devtools/src/ui-router-devtools.ts:14](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/ui-router-devtools.ts#L14) |
|  `recorder` | `readonly` | [`Recorder`](../../index/interfaces/Recorder.md) | `undefined` | The recorder behind the panel, for reporters that should share it. | [ui-router-devtools/src/ui-router-devtools.ts:20](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/ui-router-devtools.ts#L20) |
|  `redaction` | `public` | [`Redaction`](../../index/interfaces/Redaction.md) | What Export scrubs unless the panel's toggles say otherwise: param keys without their values and messages kept by default. | [ui-router-devtools/src/ui-router-devtools.ts:18](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/ui-router-devtools.ts#L18) |
|  `router` | `public` | | [`UIRouter`](https://ui-router.github.io/core/docs/latest/classes/_router_.uirouter.html) | `undefined` | The router to record. | [ui-router-devtools/src/ui-router-devtools.ts:12](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/ui-router-devtools.ts#L12) |
|  `spans` | `public` | readonly [`SpanRecord`](../../index/interfaces/SpanRecord.md)\[] | Spans from a tracer, which the Timeline joins to transitions; setting it replaces them all. It holds the latest 2000. | [ui-router-devtools/src/ui-router-devtools.ts:26](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/ui-router-devtools.ts#L26) |
|  `timeResolves` | `public` | `boolean` | Time resolves by wrapping their `resolveFn`; read when the router attaches. The attribute is `time-resolves`. | [ui-router-devtools/src/ui-router-devtools.ts:16](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/ui-router-devtools.ts#L16) |
|  `viewLocator` | `public` | [`ViewLocator`](../../index/interfaces/ViewLocator.md) | `undefined` | Finds a view's element on the page for the Views, such as `litViewLocator` from `ui-router-devtools/lit-ui-router`; without one the Views draw the router's data only. | [ui-router-devtools/src/ui-router-devtools.ts:30](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/ui-router-devtools.ts#L30) |

## Methods

### addSpan()

```ts
addSpan(span): void;
```

Defined in: [ui-router-devtools/src/ui-router-devtools.ts:28](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/ui-router-devtools.ts#L28)

Adds a span, or replaces the one with its `spanId`: a span can be sent when it starts, without `endTime`, and again when it ends.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `span` | [`SpanRecord`](../../index/interfaces/SpanRecord.md) |

#### Returns

`void`

***

### importSession()

```ts
importSession(session): void;
```

Defined in: [ui-router-devtools/src/ui-router-devtools.ts:24](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/ui-router-devtools.ts#L24)

Shows `session` instead of the live router until the panel's Live button is pressed.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `session` | [`Session`](../../index/interfaces/Session.md) |

#### Returns

`void`

***

### session()

```ts
session(redaction?): Session | undefined;
```

Defined in: [ui-router-devtools/src/ui-router-devtools.ts:22](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/ui-router-devtools.ts#L22)

The session the panel shows, live or imported, scrubbed by `redaction`, which defaults to the element's.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `redaction?` | `Partial`<[`Redaction`](../../index/interfaces/Redaction.md)> |

#### Returns

[`Session`](../../index/interfaces/Session.md) | `undefined`
