2017-03-02 61 views
1

我试图给我的Android和IOS项目添加一个嘟嘟声。但是我尝试的东西失败了。 我已经使用this和很多其他文章,但没有任何成功。Xamarin使用哔声()

如果我把代码:public static Void Beep()我会得到错误:

System.Void cannot be used from C# -- use typeof(void) to get the void type object

而且

Page_BarcodeScanner.Beep() must declare a body because it is not marked abstract, extern or partial

我希望每个人都可以把我在正确的方向,因为我已经卡住2天。

+0

https://github.com/xamarin/xamarin-有用形式的书样本/树/主/ Chapter09/MonkeyTapWithSound – SushiHangover

回答