Compartir a través de


ContactsContract.PhoneLookup Class

Definition

A table that represents the result of looking up a phone number, for example for caller ID.

[Android.Runtime.Register("android/provider/ContactsContract$PhoneLookup", DoNotGenerateAcw=true)]
public sealed class ContactsContract.PhoneLookup : Java.Lang.Object
[<Android.Runtime.Register("android/provider/ContactsContract$PhoneLookup", DoNotGenerateAcw=true)>]
type ContactsContract.PhoneLookup = class
    inherit Object
Inheritance
ContactsContract.PhoneLookup
Attributes

Remarks

A table that represents the result of looking up a phone number, for example for caller ID. To perform a lookup you must append the number you want to find to #CONTENT_FILTER_URI. This query is highly optimized.

Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(phoneNumber));
            resolver.query(uri, new String[]{PhoneLookup.DISPLAY_NAME,...

<h3>Columns</h3>

<table class="jd-sumtable"> <tr> <th colspan='4'>PhoneLookup</th> </tr> <tr> <td>String</td> <td>#NUMBER</td> <td>read-only</td> <td>Phone number.</td> </tr> <tr> <td>String</td> <td>#TYPE</td> <td>read-only</td> <td>Phone number type. See CommonDataKinds.Phone.</td> </tr> <tr> <td>String</td> <td>#LABEL</td> <td>read-only</td> <td>Custom label for the phone number. See CommonDataKinds.Phone.</td> </tr> </table>

Columns from the Contacts table are also available through a join.

<table class="jd-sumtable"> <tr> <th colspan='4'>Join with Contacts</th> </tr> <tr> <td>long</td> <td>#_ID</td> <td>read-only</td> <td>Contact ID.</td> </tr> <tr> <td>long</td> <td>#CONTACT_ID</td> <td>read-only</td> <td>Contact ID.</td> </tr> <tr> <td>long</td> <td>#DATA_ID</td> <td>read-only</td> <td>Data ID.</td> </tr> <tr> <td>String</td> <td>#LOOKUP_KEY</td> <td>read-only</td> <td>See ContactsContract.Contacts</td> </tr> <tr> <td>String</td> <td>#DISPLAY_NAME</td> <td>read-only</td> <td>See ContactsContract.Contacts</td> </tr> <tr> <td>long</td> <td>#PHOTO_ID</td> <td>read-only</td> <td>See ContactsContract.Contacts.</td> </tr> <tr> <td>int</td> <td>#IN_VISIBLE_GROUP</td> <td>read-only</td> <td>See ContactsContract.Contacts.</td> </tr> <tr> <td>int</td> <td>#HAS_PHONE_NUMBER</td> <td>read-only</td> <td>See ContactsContract.Contacts.</td> </tr> <tr> <td>int</td> <td>#STARRED</td> <td>read-only</td> <td>See ContactsContract.Contacts.</td> </tr> <tr> <td>String</td> <td>#CUSTOM_RINGTONE</td> <td>read-only</td> <td>See ContactsContract.Contacts.</td> </tr> <tr> <td>int</td> <td>#SEND_TO_VOICEMAIL</td> <td>read-only</td> <td>See ContactsContract.Contacts.</td> </tr> </table>

Java documentation for android.provider.ContactsContract.PhoneLookup.

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.

Fields

QueryParameterSipAddress

If this boolean parameter is set to true, then the appended query is treated as a SIP address and the lookup will be performed against SIP addresses in the user's contacts.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
ContentFilterUri

The content:// style URI for this table.

EnterpriseContentFilterUri

URI used for looking up contacts by phone number on the contact databases of both the calling user and the managed profile that is linked to it.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to