---
title: "ShouldPauseCallback"
description: "The callback type used in [PausedComposition.resume]."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>



```kotlin
public fun interface ShouldPauseCallback
```


The callback type used in `PausedComposition.resume`.


## Functions

```kotlin
public fun shouldPause(): Boolean
```


Called to determine if a resumed `PausedComposition` should pause.

#### Returns

| | |
| --- | --- |
|  | Return `true` to indicate that the composition should pause. Otherwise the composition will continue normally. |




