Language

VolumeNotificationFlags Enum

Definition

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

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum VolumeNotificationFlags
[<System.Flags>]
type VolumeNotificationFlags = 
Inheritance
VolumeNotificationFlags
Attributes

Fields

Name Value Description
ShowUi 1

Show a toast containing the current volume.

AllowRingerModes 2

Whether to include ringer modes as possible options when changing volume. For example, if true and volume level is 0 and the volume is adjusted with ADJUST_LOWER, then the ringer mode may switch the silent or vibrate mode. 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.

Android reference for android.media.AudioManager.FLAG_ALLOW_RINGER_MODES.

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.

PlaySound 4

Whether to play a sound when changing the volume. If this is given to adjustVolume(int, int) or adjustSuggestedStreamVolume(int, int, int), it may be ignored in some cases (for example, the decided stream type is not AudioManager.STREAM_RING, or the volume is being adjusted downward).

Android reference for android.media.AudioManager.FLAG_PLAY_SOUND.

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.

RemoveSoundAndVibrate 8

Removes any sounds/vibrate that may be in the queue, or are playing (related to changing volume).

Vibrate 16

Whether to vibrate if going into the vibrate ringer mode.

Remarks

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