DevicePolicyManager.SetMasterVolumeMuted(ComponentName, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
由設定檔或裝置擁有者呼叫,來設定全域音量靜音開關。
[Android.Runtime.Register("setMasterVolumeMuted", "(Landroid/content/ComponentName;Z)V", "GetSetMasterVolumeMuted_Landroid_content_ComponentName_ZHandler")]
public virtual void SetMasterVolumeMuted(Android.Content.ComponentName admin, bool on);
[<Android.Runtime.Register("setMasterVolumeMuted", "(Landroid/content/ComponentName;Z)V", "GetSetMasterVolumeMuted_Landroid_content_ComponentName_ZHandler")>]
abstract member SetMasterVolumeMuted : Android.Content.ComponentName * bool -> unit
override this.SetMasterVolumeMuted : Android.Content.ComponentName * bool -> unit
參數
- admin
- ComponentName
這個請求就是和這個 DeviceAdminReceiver 問題有關的。
- on
- Boolean
true 要靜音全域音量, false 關閉靜音。
- 屬性
備註
由設定檔或裝置擁有者呼叫,來設定全域音量靜音開關。 在受管理的設定檔中,這不會有影響。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。