/// <summary> /// Deletes a contact from the contact store. /// </summary> /// <param name="contact">Contact.</param> public void DeleteContact(CNMutableContact contact) { if (contact != null) { C.CNSaveRequest_deleteContact(SelfPtr(), contact.ToPointer()); } }
/// <summary> /// Adds the specified contact to the contact store. /// </summary> /// <param name="contact">Contact.</param> /// <param name="identifier">Identifier.</param> public void AddContactToContainerWithIdentifier(CNMutableContact contact, NSString identifier) { Util.NullArgumentTest(contact); C.CNSaveRequest_addContactToContainerWithIdentifier( SelfPtr(), contact.ToPointer(), identifier == null ? IntPtr.Zero : identifier.ToPointer()); }
/// <summary> /// Returns a new instance that’s a mutable copy of the receiver. /// </summary> /// <returns>The copy.</returns> public CNMutableContact MutableCopy() { CNMutableContact mutCopy = null; var ptr = C.CNContact_mutableCopy(SelfPtr()); if (PInvokeUtil.IsNotNull(ptr)) { mutCopy = new CNMutableContact(ptr); CFFunctions.CFRelease(ptr); } return(mutCopy); }
/// <summary> /// Updates an existing contact in the contact store. /// </summary> /// <param name="contact">Contact.</param> public void UpdateContact(CNMutableContact contact) { Util.NullArgumentTest(contact); C.CNSaveRequest_updateContact(SelfPtr(), contact.ToPointer()); }