This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async void Button_Click(object sender, RoutedEventArgs e) | |
{ | |
//直接開啟Skype | |
await Launcher.LaunchUriAsync(new Uri("skype:")); | |
//開啟Skype並撥打給user1 | |
//await Launcher.LaunchUriAsync(new Uri("skype:user1?call")); | |
//開啟Skype並與user1聊天 | |
//await Launcher.LaunchUriAsync(new Uri("skype:user1?chat")); | |
} |
主要就是透過URI的參數來決定執行後的動作,更多的參數說明可以參考Reference的連結,另外如果是使用javascript開發的話,直接參考官網上的Tutorial就可以了。
Reference
Skype URI API ReferenceSkype URI Tutorial: Windows 8 Apps
0 意見:
張貼留言