コード例 #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);
     }
 }
コード例 #2
0
 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);
     }
 }