コード例 #1
0
        protected internal virtual void OnPerformAction(ABPeoplePickerPerformActionEventArgs e)
        {
            var h = EnsureEventDelegate <InternalABPeoplePickerNavigationControllerDelegate> ().performAction;

            if (h != null)
            {
                h(this, e);
            }
        }
コード例 #2
0
        public override bool ShouldContinue(ABPeoplePickerNavigationController peoplePicker, ABPerson selectedPerson, int propertyId, int identifier)
        {
            ABPersonProperty property = ABPersonPropertyId.ToPersonProperty(propertyId);
            int?id = identifier == ABRecord.InvalidPropertyId ? null : (int?)identifier;

            var e = new ABPeoplePickerPerformActionEventArgs(selectedPerson, property, id);

            peoplePicker.OnPerformAction(e);
            return(e.Continue);
        }