Bagikan melalui


ContactsContract.Contacts.LookupContact(ContentResolver, Uri) Method

Definition

Computes a content URI (see #CONTENT_URI) given a lookup URI.

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

Parameters

resolver
ContentResolver
lookupUri
Uri

Returns

Uri
Attributes

Remarks

Computes a content URI (see #CONTENT_URI) given a lookup URI.

Returns null if the contact cannot be found.

Java documentation for android.provider.ContactsContract.Contacts.lookupContact(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