共用方式為


ContactsContract.PinnedPositions.Pin(ContentResolver, Int64, Int32) Method

Definition

Pins a contact at a provided position, or unpins a contact.

[Android.Runtime.Register("pin", "(Landroid/content/ContentResolver;JI)V", "")]
public static void Pin (Android.Content.ContentResolver? contentResolver, long contactId, int pinnedPosition);
[<Android.Runtime.Register("pin", "(Landroid/content/ContentResolver;JI)V", "")>]
static member Pin : Android.Content.ContentResolver * int64 * int -> unit

Parameters

contentResolver
ContentResolver

to perform the pinning operation on.

contactId
Int64
pinnedPosition
Int32

the position to pin the contact at. To unpin a contact, use PinnedPositions#UNPINNED.

Attributes

Remarks

Pins a contact at a provided position, or unpins a contact.

Java documentation for android.provider.ContactsContract.PinnedPositions.pin(android.content.ContentResolver, long, int).

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