# WriteBatch.Function

# WriteBatch.Function


```
interface WriteBatch.Function
```

<br />

*** ** * ** ***

An interface for providing code to be executed within a `WriteBatch` context.

| See also |
|---|---|
| `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/firestore/FirebaseFirestore#runBatch(com.google.firebase.firestore.WriteBatch.Function)` |   |

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/firestore/WriteBatch.Function#apply(com.google.firebase.firestore.WriteBatch)(batch: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/firestore/WriteBatch)` |

## Public functions

### apply

```
fun apply(batch: WriteBatch): Unit
```