コード例 #1
0
 //Event
 private void GifAdapterOnItemClick(object sender, GifAdapterAdapterClickEventArgs adapterClickEvents)
 {
     try
     {
         var position = adapterClickEvents.Position;
         if (position >= 0)
         {
             var item = GifAdapter.GetItem(position);
             if (item != null)
             {
                 // G_fixed_height_small_url, // UrlGif - view  >>
                 // G_fixed_height_small_mp4, //MediaGif - sent >>
                 var resultIntent = new Intent();
                 resultIntent.PutExtra("MediaGif", item.images.fixed_height_small.mp4);
                 resultIntent.PutExtra("UrlGif", item.images.fixed_height_small.url);
                 SetResult(Result.Ok, resultIntent);
                 Finish();
             }
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
コード例 #2
0
ファイル: Gif_Activity.cs プロジェクト: AkshayUsha/AndroidAru
 //Event
 private void GifAdapterOnItemClick(object sender, GifAdapterAdapterClickEventArgs adapterClickEvents)
 {
     try
     {
         var position = adapterClickEvents.Position;
         if (position >= 0)
         {
             var item = GifAdapter.GetItem(position);
             if (item != null)
             {
                 var resultIntent = new Intent();
                 resultIntent.PutExtra("gif", item.images.preview_gif.url);
                 SetResult(Result.Ok, resultIntent);
                 Finish();
             }
         }
     }
     catch (Exception e)
     {
         Crashes.TrackError(e);
     }
 }