[android-components](../index.md) / [mozilla.components.support.test](index.md) / [argumentCaptor](./argument-captor.md)

# argumentCaptor

`inline fun <reified T : `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`> argumentCaptor(): `[`KArgumentCaptor`](-k-argument-captor/index.md)`<`[`T`](argument-captor.md#T)`>` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/test/src/main/java/mozilla/components/support/test/KArgumentCaptor.kt#L13)

Creates a [KArgumentCaptor](-k-argument-captor/index.md) for given type.

