getContactFromUri

private fun getContactFromUri(context: Context, uri: Uri): Contact?(source)

Extracts comprehensive contact data from the provided Uri.

Return

A hydrated Contact instance or null if the record could not be found.

Parameters

context
uri

The URI returned by the contact picker activity.