Short vibration like on image in gallery on zoom?

ChristianKroesChristianKroes ✭✭USMember ✭✭

Hi everybody,
I would like to know if there is a way to vibrate a very short time, like it does when you zoom an image in the gallery too much and it flips back...?

Best regards
Chris

Tagged:

Best Answer

Answers

  • ColeXColeX Xamurai Member, Xamarin Team Xamurai

    Try SystemSound.Vibrate.PlayAlertSound().

    Also Check VibratePlugin

    Usage:

    var v = CrossVibrate.Current;
    v.Vibration(TimeSpan.FromSeconds(1)); // 1 second vibration
    
  • ChristianKroesChristianKroes ✭✭ USMember ✭✭

    I tried VibratePlugin, but:

    Platform Tweaks
    iOS There is no API to vibrate for a specific amount of time, so it will vibrate for the default time the system specifies (around 500 milliseconds)..

    The vibration I mean is may be 50-100ms, just a short "bump" ... Try it out in the gallery ...

  • ChristianKroesChristianKroes ✭✭ USMember ✭✭

    Thank you John, that was what I am looking for.. :smiley:

Sign In or Register to comment.