Inheritance: System.EventArgs
Esempio n. 1
0
        protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
        {
            base.OnActivityResult(requestCode, resultCode, data);

            if (ActivityResult != null)
            {
                var args = new ActivityResultEventArgs
                {
                    data        = data,
                    requestCode = requestCode,
                    resultCode  = resultCode
                };

                ActivityResult(this, args);
            }
        }
Esempio n. 2
0
 protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
 {
     base.OnActivityResult(requestCode, resultCode, data);
     if (ContactPicker.IsShowContactPickerIntent(requestCode))
     {
         if (ShowContactPicker != null)
         {
             var args = new ActivityResultEventArgs
             {
                 data        = data,
                 requestCode = requestCode,
                 resultCode  = resultCode
             };
             ShowContactPicker(null, args);
         }
     }
 }