Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created April 13, 2018 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juucustodio/d124945e212f7f42da5daafc76141ecf to your computer and use it in GitHub Desktop.
Save juucustodio/d124945e212f7f42da5daafc76141ecf to your computer and use it in GitHub Desktop.
Example of how to vibrate device in Xamarin.Forms applications - http://julianocustodio.com/vibrate
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DemoVibrate"
x:Class="DemoVibrate.MainPage">
<StackLayout VerticalOptions="Center"
HorizontalOptions="Center">
<Button Text="Vibrate" Clicked="ButtonClick"/>
</StackLayout>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment