Compartilhar via


UserManager.DisallowAdjustVolume Field

Definition

Specifies if a user is disallowed from adjusting the global volume.

[Android.Runtime.Register("DISALLOW_ADJUST_VOLUME")]
public const string DisallowAdjustVolume;
[<Android.Runtime.Register("DISALLOW_ADJUST_VOLUME")>]
val mutable DisallowAdjustVolume : string

Field Value

Attributes

Remarks

Specifies if a user is disallowed from adjusting the global volume. If set, the global volume will be muted. This can be set by device owners from API 21 and profile owners from API 24. The default value is false.

When the restriction is set by profile owners, then it only applies to relevant profiles.

Holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_AUDIO_OUTPUT can set this restriction using the DevicePolicyManager APIs mentioned below.

This restriction has no effect on managed profiles.

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_ADJUST_VOLUME.

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.

Applies to

See also