title: How to make long press gesture in Xamarin Forms?
body: <p>Could you please let me know how can I recognize long press gesture in Xamarin Forms application?</p>
  
  <p>A few days before I used <code>TapGestureRecognizer</code> </p>
  
  
  
  <pre class="lang-cs prettyprint-override"><code>TapGestureRecognizer imageTap = new TapGestureRecognizer();
  imageTap.Tapped += (sender, args) =&gt; this.OnClickImage;
  image.GestureRecognizers.Add(imageTap);
  </code></pre>
  
  <p>But I don't know how to make long press gesture according to this <a href="https://forums.xamarin.com/discussion/27323/how-can-i-recognize-long-press-gesture-in-xamarin-forms" rel="noreferrer">thread from xamarin forum</a></p>
  
  <p>It should looks something like this, but it does not work.</p>
  
  <pre class="lang-cs prettyprint-override"><code>var dumpParam = new RelayGesture((g, x) =&gt; DisplayAlert("Title", "Hello message", "Cancel"));
  
  book.Cover.SetValue(Gestures.InterestsProperty, new GestureCollection() {
      new GestureInterest
          {
              GestureType = GestureType.LongPress
              GestureCommand = // what should I set?
              GestureParameter = dumpParam
          }
   });
  </code></pre>
  
  <p>How to set my custom handler method? </p>