Exemplo n.º 1
0
 private void MAdapterOnItemClick(object sender, GifAdapterClickEventArgs e)
 {
     try
     {
         var item = MAdapter.GetItem(e.Position);
         if (item != null)
         {
             var resultIntent = new Intent();
             resultIntent?.PutExtra("gif", item.Images.FixedHeightDownsampled.Url);
             SetResult(Result.Ok, resultIntent);
             Finish();
         }
     }
     catch (Exception exception)
     {
         Methods.DisplayReportResultTrack(exception);
     }
 }
 private void MAdapterOnItemClick(object sender, GifAdapterClickEventArgs e)
 {
     try
     {
         var item = MAdapter.GetItem(e.Position);
         if (item != null)
         {
             var resultIntent = new Intent();
             resultIntent.PutExtra("MediaGif", item.Images.FixedHeightSmall.Mp4);
             resultIntent.PutExtra("UrlGif", item.Images.FixedHeightDownsampled.Url);
             SetResult(Result.Ok, resultIntent);
             Finish();
         }
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }