最前面的話:Smobiler是一個在VS環境中使用.Net語言來開發APP的開發平台,也許比Xamarin更方便
我們要實現上圖中的效果,需要如下的操作:
讓控件顯示在合適的位置(100, 20),如圖1;
設置按鈕圖標名稱,將該屬性設置為“ed”,如圖2;
設置客戶端獲取音頻的超時時間(毫秒),默認設置為“60000”,如圖3;
圖1 圖2 圖3VB: Private Sub offlineVoiceRecorderButton1_OfflineRecordedAudio(sender As Object, e As APIResourceData) Handles offlineVoiceRecorderButton1.OfflineRecordedAudio Me.MessageBox.Show("提示:offline") End Sub
C#: private void offlineVoiceRecorderButton1_OfflineRecordedAudio(object sender, APIResourceData e) { MessageBox.Show("提示:offline"); }