Exemplo n.º 1
0
        public void ContactPickerDidSelectContact(CNContactPickerViewController picker, CNContact contact)
        {
            if (contact == null)
            {
                InvokeCallback("Received a null contact data.", null);
                DismissPicker();
                return;
            }

            try
            {
                InvokeCallback(null, contact.ToContact());
            }
            catch (Exception e)
            {
                InvokeCallback(e.Message, null);
                Debug.Log(e.StackTrace);
            }
            finally
            {
                DismissPicker();
            }
        }