DevicePolicyManager.SetMasterVolumeMuted(ComponentName, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called by profile or device owners to set the global volume mute on or off.
[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
Parameters
- admin
- ComponentName
Which DeviceAdminReceiver
this request is associated with.
- on
- Boolean
true
to mute global volume, false
to turn mute off.
- Attributes
Remarks
Called by profile or device owners to set the global volume mute on or off. This has no effect when set on a managed profile.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.