コード例 #1
0
        bool ShouldContinue(ABPeoplePickerNavigationController peoplePicker, ABPerson selectedPerson, int propertyId, int identifier)
        {
            RaiseEmailPicked(PersonFormatter.GetPickedEmail(selectedPerson, identifier));
            peoplePicker.DismissViewController(true, null);

            return(false);
        }
コード例 #2
0
        bool ShouldContinue(ABPeoplePickerNavigationController peoplePicker, ABPerson selectedPerson)
        {
            bool shouldcontinue = false;

            using (ABMultiValue <string> emails = selectedPerson.GetEmails())
                shouldcontinue = emails.Count == 1;

            if (!shouldcontinue)
            {
                peoplePicker.DismissViewController(true, null);
                RaiseEmailPicked(PersonFormatter.GetPickedEmail(selectedPerson));
            }

            return(shouldcontinue);
        }
コード例 #3
0
 void DidSelectPersonProperty(ABPeoplePickerNavigationController peoplePicker, ABPerson selectedPerson, int propertyId, int identifier)
 {
     Console.WriteLine(identifier);
     RaiseEmailPicked(PersonFormatter.GetPickedEmail(selectedPerson, identifier));
 }
コード例 #4
0
 void DidSelectPerson(ABPeoplePickerNavigationController peoplePicker, ABPerson selectedPerson)
 {
     RaiseEmailPicked(PersonFormatter.GetPickedEmail(selectedPerson));
 }