ActivityResultContracts.PickContact


class ActivityResultContracts.PickContact : ActivityResultContract


An ActivityResultContract to request the user to pick a contact from the contacts app.

The result is a content: Uri.

See also
ContactsContract

Summary

Public constructors

Public functions

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

Create an intent that can be used for android.app.Activity.startActivityForResult.

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

Convert result obtained from android.app.Activity.onActivityResult to O.

Inherited functions

From androidx.activity.result.contract.ActivityResultContract
open ActivityResultContract.SynchronousResult<Uri?>?
getSynchronousResult(context: Context, input: Void?)

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
PickContact()

Public functions

createIntent

Added in 1.2.0
open fun createIntent(context: Context, input: Void?): Intent

Create an intent that can be used for android.app.Activity.startActivityForResult.

parseResult

Added in 1.10.0-rc01
open fun parseResult(resultCode: Int, intent: Intent?): Uri?

Convert result obtained from android.app.Activity.onActivityResult to O.