Exemplo n.º 1
0
        protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
        {
            base.OnActivityResult(requestCode, resultCode, data);

            if (IntentHelper.IsMobileIntent(requestCode))
            {
                IntentHelper.ActivityResult(requestCode, data);
            }
        }
Exemplo n.º 2
0
        public Task <string> OpenAddressBook()
        {
            var task = new TaskCompletionSource <string>();

            try
            {
                IntentHelper.OpenContactPicker((path) =>
                {
                    if (path != null)
                    {
                        task.SetResult(path);
                    }
                });
            }
            catch (Exception ex)
            {
                task.SetException(ex);
            }
            return(task.Task);
        }