-2
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace App1
{
public partial class Page1 : ContentPage
{
public Page1()
{
InitializeComponent();
}
void OnButton_Clicked(object sender, EventArgs args)
{
/* code to vibrate */
}
}
}
请列出您已经尝试过的东西,或者您已经阅读过的资源。 –