Udostępnij za pośrednictwem


ContactsContract.Contacts.MarkAsContacted(ContentResolver, Int64) Method

Definition

Caution

deprecated

Mark a contact as having been contacted.

[Android.Runtime.Register("markAsContacted", "(Landroid/content/ContentResolver;J)V", "")]
[System.Obsolete("deprecated")]
public static void MarkAsContacted (Android.Content.ContentResolver? resolver, long contactId);
[<Android.Runtime.Register("markAsContacted", "(Landroid/content/ContentResolver;J)V", "")>]
[<System.Obsolete("deprecated")>]
static member MarkAsContacted : Android.Content.ContentResolver * int64 -> unit

Parameters

resolver
ContentResolver

the ContentResolver to use

contactId
Int64

the person who was contacted

Attributes

Remarks

Mark a contact as having been contacted. Updates two fields: #TIMES_CONTACTED and #LAST_TIME_CONTACTED. The TIMES_CONTACTED field is incremented by 1 and the LAST_TIME_CONTACTED field is populated with the current system time.

<p class="caution"><b>Caution: </b>If you publish your app to the Google Play Store, this field is obsolete, regardless of Android version. For more information, see the Contacts Provider page.</p>

This member is deprecated. Contacts affinity information is no longer supported as of Android version android.os.Build.VERSION_CODES#Q. This method is no-op.

Java documentation for android.provider.ContactsContract.Contacts.markAsContacted(android.content.ContentResolver, long).

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