private void Adapter_ItemClick(object sender, ClickEventArgs e) { StartVideoStatus(e.Position); if (interstitialAd.IsLoaded) { interstitialAd.Show(); } LoadAd(); }
private void Adapter_ItemLongClick(object sender, ClickEventArgs e) { if (Preferences.ContainsKey("favorites", videos[e.Position].Id.ToString())) { Preferences.Remove("favorites", videos[e.Position].Id.ToString()); Toast.MakeText(this, GetString(Resource.String.remove_from_favorites), ToastLength.Short).Show(); } else { Preferences.Set("favorites", videos[e.Position].Id, videos[e.Position].Id.ToString()); Toast.MakeText(this, GetString(Resource.String.added_to_favorites), ToastLength.Short).Show(); } }
private void Adapter_ItemClick(object sender, ClickEventArgs e) { Intent intent = new Intent(this, typeof(PlayVideoActivity)); intent.PutExtra("videoUrl", videos[e.Position].VideoPath); intent.PutExtra("coverUrl", videos[e.Position].CoverPath); intent.PutExtra("title", videos[e.Position].Title); intent.PutExtra("videoId", videos[e.Position].Id); intent.PutExtra("date", videos[e.Position].Date.ToString()); intent.PutExtra("likes", videos[e.Position].LikesCount); intent.PutExtra("downloads", videos[e.Position].DownloadsCount); intent.PutExtra("views", videos[e.Position].ViewsCount); StartActivity(intent); }
private void OnLongClick(ClickEventArgs args) => ItemLongClick?.Invoke(this, args);
private void Adapter_ItemClick(object sender, ClickEventArgs e) { StartActivity(new Intent(Intent.ActionView, Uri.Parse(applications[e.Position].PlayStoreLink))); }