2017-03-02 59 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

回答