Android Guides | Samples

Android.Media.VolumeNotificationFlags Enumeration

Enumerates values returned by several methods of VolumeNotificationFlags and taken as a parameter of several methods of AudioManager.

Syntax

[System.Flags]
public enum VolumeNotificationFlags

Remarks

Members

Member NameDescription
AllowRingerModes

Adjust.Lower

By default this is on for the ring stream. If this flag is included, this behavior will be present regardless of the stream type being affected by the ringer mode.

PlaySound

If this is given to AudioManager.AdjustVolume(Adjust,VolumeNotificationFlags) or AudioManager.AdjustSuggestedStreamVolume(Adjust,Stream,Stream), it may be ignored in some cases (for example, the decided stream type is not Stream.Ring, or the volume is being adjusted downward).

RemoveSoundAndVibrateRemoves any sounds/vibrate that may be in the queue, or are playing (related to changing volume).
ShowUiShow a toast containing the current volume.
VibrateWhether to vibrate if going into the vibrate ringer mode.

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Media.VolumeNotificationFlags are listed below.

See Also: Enum

Public Fields

AllowRingerModesVolumeNotificationFlags.

Adjust.Lower

By default this is on for the ring stream. If this flag is included, this behavior will be present regardless of the stream type being affected by the ringer mode.

PlaySoundVolumeNotificationFlags.

If this is given to AudioManager.AdjustVolume(Adjust,VolumeNotificationFlags) or AudioManager.AdjustSuggestedStreamVolume(Adjust,Stream,Stream), it may be ignored in some cases (for example, the decided stream type is not Stream.Ring, or the volume is being adjusted downward).

RemoveSoundAndVibrateVolumeNotificationFlags. Removes any sounds/vibrate that may be in the queue, or are playing (related to changing volume).
ShowUiVolumeNotificationFlags. Show a toast containing the current volume.
VibrateVolumeNotificationFlags. Whether to vibrate if going into the vibrate ringer mode.