Ejemplo n.º 1
0
        public override bool ShouldContinue(ABPeoplePickerNavigationController peoplePicker, ABPerson selectedPerson)
        {
            var e = new ABPeoplePickerSelectPersonEventArgs(selectedPerson);

            peoplePicker.OnSelectPerson(e);
            return(e.Continue);
        }
        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);
        }
Ejemplo n.º 3
0
        protected internal virtual void OnSelectPerson(ABPeoplePickerSelectPersonEventArgs e)
        {
            var h = EnsureEventDelegate <InternalABPeoplePickerNavigationControllerDelegate> ().selectPerson;

            if (h is not null)
            {
                h(this, e);
            }
        }