ContactsContract.PinnedPositions.Pin(ContentResolver, Int64, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.