Stay organized with collections
Save and categorize content based on your preferences.
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(flag = true, value = )
public annotation C.VolumeFlags
Volume flags to be used when setting or adjusting device volume. The value can be either 0 or a combination of the following flags: VOLUME_FLAG_SHOW_UI
, VOLUME_FLAG_ALLOW_RINGER_MODES
, VOLUME_FLAG_PLAY_SOUND
, VOLUME_FLAG_REMOVE_SOUND_AND_VIBRATE
, VOLUME_FLAG_VIBRATE
.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-07-17 UTC.
[null,null,["Last updated 2025-07-17 UTC."],[],[],null,["# C.VolumeFlags\n=============\n\nArtifact: [androidx.media3:media3-common](/jetpack/androidx/releases/media3) \n[View Source](https://cs.android.com/search?q=file:androidx/media3/common/C.java+class:androidx.media3.common.C.VolumeFlags)\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/media3/common/C.VolumeFlags \"View this page in Kotlin\") \\|Java\n\n\n```\n@Documented\n@Retention(value = RetentionPolicy.SOURCE)\n@Target(value = )\n@IntDef(flag = true, value = )\npublic annotation C.VolumeFlags\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nVolume flags to be used when setting or adjusting device volume. The value can be either 0 or a combination of the following flags: [VOLUME_FLAG_SHOW_UI](/reference/androidx/media3/common/C#VOLUME_FLAG_SHOW_UI()), [VOLUME_FLAG_ALLOW_RINGER_MODES](/reference/androidx/media3/common/C#VOLUME_FLAG_ALLOW_RINGER_MODES()), [VOLUME_FLAG_PLAY_SOUND](/reference/androidx/media3/common/C#VOLUME_FLAG_PLAY_SOUND()), [VOLUME_FLAG_REMOVE_SOUND_AND_VIBRATE](/reference/androidx/media3/common/C#VOLUME_FLAG_REMOVE_SOUND_AND_VIBRATE()), [VOLUME_FLAG_VIBRATE](/reference/androidx/media3/common/C#VOLUME_FLAG_VIBRATE())."]]