public override bool ShouldContinue(ABPeoplePickerNavigationController peoplePicker, IntPtr selectedPerson) { var e = new ABPeoplePickerSelectPersonEventArgs(selectedPerson == IntPtr.Zero ? null : new ABPerson(selectedPerson, peoplePicker.AddressBook)); peoplePicker.OnSelectPerson(e); return(e.Continue); }
public override bool ShouldContinue(ABPeoplePickerNavigationController peoplePicker, ABPerson selectedPerson) { var e = new ABPeoplePickerSelectPersonEventArgs(selectedPerson); peoplePicker.OnSelectPerson(e); return(e.Continue); }
public override void DidSelectPerson(ABPeoplePickerNavigationController peoplePicker, ABPerson selectedPerson, int propertyId, int identifier) { ABPersonProperty property = ABPersonPropertyId.ToPersonProperty(propertyId); int?id = identifier == ABRecord.InvalidPropertyId ? null : (int?)identifier; var e = new ABPeoplePickerPerformAction2EventArgs(selectedPerson, property, id); peoplePicker.OnPerformAction2(e); }
public override bool ShouldContinue(ABPeoplePickerNavigationController peoplePicker, IntPtr selectedPerson, int propertyId, int identifier) { ABPerson person = selectedPerson == IntPtr.Zero ? null : new ABPerson(selectedPerson, peoplePicker.AddressBook); ABPersonProperty property = ABPersonPropertyId.ToPersonProperty(propertyId); int?id = identifier == ABRecord.InvalidPropertyId ? null : (int?)identifier; var e = new ABPeoplePickerPerformActionEventArgs(person, property, id); peoplePicker.OnPerformAction(e); return(e.Continue); }
public override void Cancelled(ABPeoplePickerNavigationController peoplePicker) { peoplePicker.OnCancelled(EventArgs.Empty); }
public override void DidSelectPerson(ABPeoplePickerNavigationController peoplePicker, ABPerson selectedPerson) { var e = new ABPeoplePickerSelectPerson2EventArgs(selectedPerson); peoplePicker.OnSelectPerson2(e); }