2015-09-29 139 views

回答

3

您可以使用AudioManager用它來實現這一目標的IsMusicActive屬性:

AudioManager manager = (AudioManager)Android.App.Application.Context.GetSystemService (Android.Content.Context.AudioService); 
var audioDetails = "Audio is " + (manager.IsMusicActive ? "on" : "off"); 
相關問題