# ActivityResultContracts.PickContact

Artifact: [androidx.activity:activity](https://developer.android.com/jetpack/androidx/releases/activity) [View Source](https://cs.android.com/search?q=file:androidx/activity/result/contract/ActivityResultContracts.kt+class:androidx.activity.result.contract.ActivityResultContracts.PickContact) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/activity#1.2.0)

*** ** * ** ***


```
class ActivityResultContracts.PickContact : ActivityResultContract<Void?, Uri?>
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.activity.result.contract.ActivityResultContract](https://developer.android.com/reference/kotlin/androidx/activity/result/contract/ActivityResultContract)\<[Void](https://developer.android.com/reference/java/lang/Void.html)?, [Uri](https://developer.android.com/reference/android/net/Uri.html)?\> ||
|   | ↳ | [androidx.activity.result.contract.ActivityResultContracts.PickContact](https://developer.android.com/reference/kotlin/androidx/activity/result/contract/ActivityResultContracts.PickContact) |

*** ** * ** ***

An `https://developer.android.com/reference/kotlin/androidx/activity/result/contract/ActivityResultContract` to request the user to pick a contact from the contacts app.

The result is a `content:` `https://developer.android.com/reference/android/net/Uri.html`.

| See also |
|---|---|
| `https://developer.android.com/reference/android/provider/ContactsContract.html` |   |

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/activity/result/contract/ActivityResultContracts.PickContact#PickContact()()` |

| ### Public functions |
|---|---|
| `open https://developer.android.com/reference/android/content/Intent.html` | `https://developer.android.com/reference/kotlin/androidx/activity/result/contract/ActivityResultContracts.PickContact#createIntent(android.content.Context,java.lang.Void)(context: https://developer.android.com/reference/android/content/Context.html, input: https://developer.android.com/reference/java/lang/Void.html?)` Create an intent that can be used for `https://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)`. |
| `open https://developer.android.com/reference/android/net/Uri.html?` | `https://developer.android.com/reference/kotlin/androidx/activity/result/contract/ActivityResultContracts.PickContact#parseResult(kotlin.Int,android.content.Intent)(resultCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, intent: https://developer.android.com/reference/android/content/Intent.html?)` Convert result obtained from `https://developer.android.com/reference/android/app/Activity.html#onActivityResult(int, int, android.content.Intent)` to `https://developer.android.com/reference/kotlin/androidx/activity/result/contract/ActivityResultContract`. |

### Inherited functions

From [androidx.activity.result.contract.ActivityResultContract](https://developer.android.com/reference/kotlin/androidx/activity/result/contract/ActivityResultContract) `open https://developer.android.com/reference/kotlin/androidx/activity/result/contract/ActivityResultContract.SynchronousResult<https://developer.android.com/reference/android/net/Uri.html?>?` `https://developer.android.com/reference/kotlin/androidx/activity/result/contract/ActivityResultContract#getSynchronousResult(android.content.Context,kotlin.Any)(context: https://developer.android.com/reference/android/content/Context.html, input: https://developer.android.com/reference/java/lang/Void.html?)`

An optional method you can implement that can be used to potentially provide a result in lieu of starting an activity.

## Public constructors

### PickContact

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/activity#1.2.0)

```
PickContact()
```

## Public functions

### createIntent

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/activity#1.2.0)

```
open fun createIntent(context: Context, input: Void?): Intent
```

Create an intent that can be used for `https://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)`.

### parseResult

```
open fun parseResult(resultCode: Int, intent: Intent?): Uri?
```

Convert result obtained from `https://developer.android.com/reference/android/app/Activity.html#onActivityResult(int, int, android.content.Intent)` to `https://developer.android.com/reference/kotlin/androidx/activity/result/contract/ActivityResultContract`.