Share via


ContactsContract.Data.GetContactLookupUri(ContentResolver, Uri) Method

Definition

Build a android.provider.ContactsContract.Contacts#CONTENT_LOOKUP_URI style Uri for the parent android.provider.ContactsContract.Contacts entry of the given ContactsContract.Data entry.

[Android.Runtime.Register("getContactLookupUri", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Landroid/net/Uri;", "")]
public static Android.Net.Uri? GetContactLookupUri (Android.Content.ContentResolver? resolver, Android.Net.Uri? dataUri);
[<Android.Runtime.Register("getContactLookupUri", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Landroid/net/Uri;", "")>]
static member GetContactLookupUri : Android.Content.ContentResolver * Android.Net.Uri -> Android.Net.Uri

Parameters

resolver
ContentResolver
dataUri
Uri

Returns

Uri
Attributes

Remarks

Build a android.provider.ContactsContract.Contacts#CONTENT_LOOKUP_URI style Uri for the parent android.provider.ContactsContract.Contacts entry of the given ContactsContract.Data entry.

Returns the Uri for the contact in the first entry returned by ContentResolver#query(Uri, String[], String, String[], String) for the provided dataUri. If the query returns null or empty results, silently returns null.

Java documentation for android.provider.ContactsContract.Data.getContactLookupUri(android.content.ContentResolver, android.net.Uri).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to