Freigeben über


UserManager.DisallowUnmuteMicrophone Field

Definition

Specifies if a user is disallowed from adjusting microphone volume.

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

Field Value

Attributes

Remarks

Specifies if a user is disallowed from adjusting microphone volume. If set, the microphone will be muted.

A device owner and a profile owner can set this restriction, although the restriction has no effect in a managed profile. When it is set by a device owner, it applies globally. When it is set by a profile owner on the primary user or by a profile owner of an organization-owned managed profile on the parent profile, it will disallow the primary user from adjusting the microphone volume.

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

The default value is false.

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_UNMUTE_MICROPHONE.

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