Compartilhar via


CallLog.Calls Class

Definition

Contains the recent calls.

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

Remarks

Contains the recent calls.

Note: If you want to query the call log and limit the results to a single value, you should append the #LIMIT_PARAM_KEY parameter to the content URI. For example:

{@code
            getContentResolver().query(
                            Calls.CONTENT_URI.buildUpon().appendQueryParameter(LIMIT_PARAM_KEY, "1")
                            .build(),
                            null, null, null, null);
            }

The call log provider enforces strict SQL grammar, so you CANNOT append "LIMIT" to the SQL query as below:

{@code
            getContentResolver().query(Calls.CONTENT_URI, null, "LIMIT 1", null, null);
            }

Java documentation for android.provider.CallLog.Calls.

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.

Constructors

CallLog.Calls()
CallLog.Calls(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Fields

AutoMissedEmergencyCall

Value for CallLog.Calls#MISSED_REASON, set when CallLog.Calls#TYPE is CallLog.Calls#MISSED_TYPE to indicate that a call was automatically rejected by system because an ongoing emergency call.

AutoMissedMaximumDialing

Value for CallLog.Calls#MISSED_REASON, set when CallLog.Calls#TYPE is CallLog.Calls#MISSED_TYPE to indicate that a call was automatically rejected by system because the system cannot support any more dialing calls.

AutoMissedMaximumRinging

Value for CallLog.Calls#MISSED_REASON, set when CallLog.Calls#TYPE is CallLog.Calls#MISSED_TYPE to indicate that a call was automatically rejected by system because the system cannot support any more ringing calls.

BlockReason

Where the CallLog.Calls#TYPE is CallLog.Calls#BLOCKED_TYPE, indicates the reason why a call is blocked.

BlockReasonBlockedNumber

Value for CallLog.Calls#BLOCK_REASON, set when CallLog.Calls#TYPE is CallLog.Calls#BLOCKED_TYPE to indicate that a call was blocked because it is in the BlockedNumbers provider.

BlockReasonCallScreeningService

Value for CallLog.Calls#BLOCK_REASON, set when CallLog.Calls#TYPE is CallLog.Calls#BLOCKED_TYPE to indicate that a call was blocked by a CallScreeningService.

BlockReasonDirectToVoicemail

Value for CallLog.Calls#BLOCK_REASON, set when CallLog.Calls#TYPE is CallLog.Calls#BLOCKED_TYPE to indicate that a call was blocked because the user configured a contact to be sent directly to voicemail.

BlockReasonNotBlocked

Value for CallLog.Calls#BLOCK_REASON, set as the default value when a call was not blocked by a CallScreeningService or any other system call blocking method.

BlockReasonNotInContacts

Value for CallLog.Calls#BLOCK_REASON, set when CallLog.Calls#TYPE is CallLog.Calls#BLOCKED_TYPE to indicate that a call was blocked because the user has chosen to block all calls from numbers not in their contacts.

BlockReasonPayPhone

Value for CallLog.Calls#BLOCK_REASON, set when CallLog.Calls#TYPE is CallLog.Calls#BLOCKED_TYPE to indicate that a call was blocked because the user has chosen to block all calls from pay phones.

BlockReasonRestrictedNumber

Value for CallLog.Calls#BLOCK_REASON, set when CallLog.Calls#TYPE is CallLog.Calls#BLOCKED_TYPE to indicate that a call was blocked because the user has chosen to block all calls from restricted numbers.

BlockReasonUnknownNumber

Value for CallLog.Calls#BLOCK_REASON, set when CallLog.Calls#TYPE is CallLog.Calls#BLOCKED_TYPE to indicate that a call was blocked because the user has chosen to block all calls from unknown numbers.

CachedFormattedNumber

The cached phone number, formatted with formatting rules based on the country the user was in when the call was made or received.

CachedLookupUri

The cached URI to look up the contact associated with the phone number, if it exists.

CachedMatchedNumber

The cached phone number of the contact which matches this entry, if it exists.

CachedName

The cached name associated with the phone number, if it exists.

CachedNormalizedNumber

The cached normalized(E164) version of the phone number, if it exists.

CachedNumberLabel

The cached number label, for a custom number type, associated with the phone number, if it exists.

CachedNumberType

The cached number type (Home, Work, etc) associated with the phone number, if it exists.

CachedPhotoId

The cached photo id of the picture associated with the phone number, if it exists.

CachedPhotoUri

The cached photo URI of the picture associated with the phone number, if it exists.

CallScreeningAppName

The name of the app which blocked a call.

CallScreeningComponentName

The ComponentName of the CallScreeningService which blocked this call.

ComposerPhotoUri

A reference to the picture that was sent via call composer.

ContentItemType

The MIME type of a #CONTENT_URI sub-directory of a single call.

ContentType

The MIME type of #CONTENT_URI and #CONTENT_FILTER_URI providing a directory of calls.

CountryIso

The ISO 3166-1 two letters country code of the country where the user received or made the call.

DataUsage

The data usage of the call in bytes.

Date

The date the call occured, in milliseconds since the epoch

DefaultSortOrder

The default sort order for this table

Duration

The duration of the call in seconds

ExtraCallTypeFilter

An optional extra used with #CONTENT_TYPE Calls.CONTENT_TYPE and Intent#ACTION_VIEW to specify that the presented list of calls should be filtered for a particular call type.

Features

Bit-mask describing features of the call (e.

FeaturesAssistedDialingUsed

Indicates the call underwent Assisted Dialing.

FeaturesHdCall

Call was HD.

FeaturesPulledExternally

Call was pulled externally.

FeaturesRtt

Call was on RTT at some point

FeaturesVideo

Call had video.

FeaturesVolte

Call was VoLTE

FeaturesWifi

Call was WIFI call.

GeocodedLocation

A geocoded location for the number associated with this call.

IsRead

Whether this item has been read or otherwise consumed by the user.

LastModified

The date the row is last inserted, updated, or marked as deleted, in milliseconds since the epoch.

LimitParamKey

Query parameter used to limit the number of call logs returned.

Location

A reference to the location that was sent via call composer.

MissedReason

Where the CallLog.Calls#TYPE is CallLog.Calls#MISSED_TYPE, indicates factors which may have lead the user to miss the call.

MissedReasonNotMissed

Value for CallLog.Calls#MISSED_REASON, set as the default value when a call was not missed.

New

Whether or not the call has been acknowledged

Number

The phone number as the user entered it.

NumberPresentation

The number presenting rules set by the network.

OffsetParamKey

Query parameter used to specify the starting record to return.

PhoneAccountComponentName

The component name of the account used to place or receive the call; in string form.

PhoneAccountId

The identifier for the account used to place or receive the call.

PostDialDigits

The post-dial portion of a dialed number, including any digits dialed after a TelecomManager#DTMF_CHARACTER_PAUSE or a TelecomManager#DTMF_CHARACTER_WAIT and these characters themselves.

PresentationAllowed
Obsolete.

Number is allowed to display for caller id.

PresentationPayphone
Obsolete.

Number is a pay phone.

PresentationRestricted
Obsolete.

Number is blocked by user.

PresentationUnavailable
Obsolete.

Number is unavailable.

PresentationUnknown
Obsolete.

Number is not specified or unknown by network.

Priority

The priority of the call, as delivered via call composer.

PriorityNormal
Obsolete.

Used as a value in the #PRIORITY column.

PriorityUrgent
Obsolete.

Used as a value in the #PRIORITY column.

Subject

The subject of the call, as delivered via call composer.

Transcription

Transcription of the call or voicemail entry.

Type

The type of the call (incoming, outgoing or missed).

UserMissedCallFiltersTimeout

When CallLog.Calls#TYPE is CallLog.Calls#MISSED_TYPE, set this bit when the call filters timed out.

UserMissedCallScreeningServiceSilenced

When CallLog.Calls#TYPE is CallLog.Calls#MISSED_TYPE, set this bit when this call is silenced by the call screening service.

UserMissedDndMode

When CallLog.Calls#TYPE is CallLog.Calls#MISSED_TYPE, set this bit when this call is silenced because the phone is in 'do not disturb mode'.

UserMissedLowRingVolume

When CallLog.Calls#TYPE is CallLog.Calls#MISSED_TYPE, set this bit when this call rings with a low ring volume.

UserMissedNoAnswer

When CallLog.Calls#TYPE is CallLog.Calls#MISSED_TYPE, set this bit when the call was missed just because user didn't answer it.

UserMissedNoVibrate

When CallLog.Calls#TYPE is CallLog.Calls#MISSED_TYPE set this bit when this call rings without vibration.

UserMissedShortRing

When CallLog.Calls#TYPE is CallLog.Calls#MISSED_TYPE, set this bit when this call rang for a short period of time.

ViaNumber

For an incoming call, the secondary line number the call was received via.

VoicemailUri

URI of the voicemail entry.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
ContentFilterUri

The content:// style URL for filtering this table on phone numbers

ContentUri

The content:// style URL for this table

ContentUriWithVoicemail

Content uri used to access call log entries, including voicemail records.

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.

ThresholdType

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

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)
GetLastOutgoingCall(Context)

Query the call log database for the last dialed number.

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