Ejemplo n.º 1
0
        protected internal virtual void OnPerformAction2(ABPeoplePickerPerformAction2EventArgs e)
        {
            var h = EnsureEventDelegate <InternalABPeoplePickerNavigationControllerDelegate> ().performAction2;

            if (h is not null)
            {
                h(this, e);
            }
        }
Ejemplo n.º 2
0
        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);
        }