ContactsContract.Data.GetContactLookupUri(ContentResolver, Uri) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.
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.