Ejemplo n.º 1
0
        bool ShouldContinue(ABPeoplePickerNavigationController peoplePicker, ABPerson selectedPerson, int propertyId, int identifier)
        {
            RaiseEmailPicked(PersonFormatter.GetPickedEmail(selectedPerson, identifier));
            peoplePicker.DismissViewController(true, null);

            return(false);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 void DidSelectPersonProperty(ABPeoplePickerNavigationController peoplePicker, ABPerson selectedPerson, int propertyId, int identifier)
 {
     Console.WriteLine(identifier);
     RaiseEmailPicked(PersonFormatter.GetPickedEmail(selectedPerson, identifier));
 }
Ejemplo n.º 4
0
 void DidSelectPerson(ABPeoplePickerNavigationController peoplePicker, ABPerson selectedPerson)
 {
     RaiseEmailPicked(PersonFormatter.GetPickedEmail(selectedPerson));
 }