コード例 #1
0
        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);
        }
コード例 #2
0
        public override bool ShouldContinue(ABPeoplePickerNavigationController peoplePicker, ABPerson selectedPerson)
        {
            var e = new ABPeoplePickerSelectPersonEventArgs(selectedPerson);

            peoplePicker.OnSelectPerson(e);
            return(e.Continue);
        }
コード例 #3
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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
 public override void Cancelled(ABPeoplePickerNavigationController peoplePicker)
 {
     peoplePicker.OnCancelled(EventArgs.Empty);
 }
コード例 #6
0
        public override void DidSelectPerson(ABPeoplePickerNavigationController peoplePicker, ABPerson selectedPerson)
        {
            var e = new ABPeoplePickerSelectPerson2EventArgs(selectedPerson);

            peoplePicker.OnSelectPerson2(e);
        }