ActivityResultContracts.PickContact

public final class ActivityResultContracts.PickContact extends ActivityResultContract


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

The result is a {@code content:}Uri.

See also
ContactsContract

Summary

Public methods

@NonNull @Override Intent

Create an intent that can be used for startActivityForResult

@Nullable @Override Uri
parseResult(@NonNull int resultCode, @Nullable Intent intent)

Convert result obtained from onActivityResult to O

Inherited methods

From class ActivityResultContract
@Nullable ActivityResultContract.SynchronousResult<@NonNull O>

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

Public methods

createIntent

@NonNull
@Override
public @Override Intent createIntent(@NonNull Context context, @Nullable Void input)

Create an intent that can be used for startActivityForResult

parseResult

@Nullable
@Override
@NonNull
public @Override Uri parseResult(@NonNull int resultCode, @Nullable Intent intent)

Convert result obtained from onActivityResult to O