---
title: "WriterEvents"
description: "A callback interface used during the capture process to write out the captured composable information."
type: "class"
lastmod: "2026-06-18T10:32:53.226365Z"
---
## API Reference

> Source set: Android

```kotlin
public class WriterEvents
```

A callback interface used during the capture process to write out the captured composable
information. This allows the capture system to pass on types that can't be serialized into the
document such as PendingIntent.

Implementations of this interface will handle the serialization or transformation of the captured
composable tree into a desired output format, such as a binary file, a JSON representation, or a
network stream.

## Properties

### pendingIntents

> Source set: Android

```kotlin
public val pendingIntents: IntObjectMap<PendingIntent>
```

## Functions

### storePendingIntent

```kotlin
public fun storePendingIntent(pendingIntent: PendingIntent): Int
```
