Ejemplo n.º 1
0
        IEnumerator CRPickContacts()
        {
            yield return(StartCoroutine(CRRequestPermission(AndroidPermission.AndroidPermissionReadContacts)));

            DeviceContacts.PickContact((error, contact) =>
            {
                if (contact != null)
                {
                    AddContactView(contact);
                    return;
                }

                string errorMessage = error ?? "Received an empty contact with unknown error.";
                NativeUI.Alert("Pick Contact Error", errorMessage);
            });
        }
Ejemplo n.º 2
0
 public override void OnEnter()
 {
     DeviceContacts.PickContact(OnContactReceived);
 }