Freigeben über


ContactsContract.Contacts.ContentLookupUri Property

Definition

A content:// style URI for this table that should be used to create shortcuts or otherwise create long-term links to contacts.

[Android.Runtime.Register("CONTENT_LOOKUP_URI")]
public static Android.Net.Uri? ContentLookupUri { get; }
[<Android.Runtime.Register("CONTENT_LOOKUP_URI")>]
static member ContentLookupUri : Android.Net.Uri

Property Value

Uri
Attributes

Remarks

A content:// style URI for this table that should be used to create shortcuts or otherwise create long-term links to contacts. This URI should always be followed by a "/" and the contact's #LOOKUP_KEY. It can optionally also have a "/" and last known contact ID appended after that. This "complete" format is an important optimization and is highly recommended.

As long as the contact's row ID remains the same, this URI is equivalent to #CONTENT_URI. If the contact's row ID changes as a result of a sync or aggregation, this URI will look up the contact using indirect information (sync IDs or constituent raw contacts).

Lookup key should be appended unencoded - it is stored in the encoded form, ready for use in a URI.

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