---
title: "IdlingResourceOwner"
description: "An interface for ComposeUiTest implementations that support registering and unregistering IdlingResources."
type: "interface"
lastmod: "2026-05-20T01:13:53.179085Z"
---
## API Reference

> Source set: Common

```kotlin
interface IdlingResourceOwner
```

An interface for [ComposeUiTest](/jetpack-compose/androidx.compose.ui/ui-test/interfaces/ComposeUiTest) implementations that support registering and unregistering
[IdlingResource](/jetpack-compose/androidx.compose.ui/ui-test/interfaces/IdlingResource)s.

Implementing this interface indicates that the test environment allows synchronization with
asynchronous operations via idling resources. While supported on Android and Desktop, this
capability is currently not available on all targets (such as Web).

Usage of these APIs should generally be guarded by a check to
[ComposeUiTest.isIdlingResourceSupported](/jetpack-compose/androidx.compose.ui/ui-test/interfaces/ComposeUiTest).

## Functions

### registerIdlingResource

```kotlin
fun registerIdlingResource(idlingResource: IdlingResource)
```

Registers an [IdlingResource](/jetpack-compose/androidx.compose.ui/ui-test/interfaces/IdlingResource) in this test.

### unregisterIdlingResource

```kotlin
fun unregisterIdlingResource(idlingResource: IdlingResource)
```

Unregisters an [IdlingResource](/jetpack-compose/androidx.compose.ui/ui-test/interfaces/IdlingResource) from this test.
