VolumeControl Enum

Definition

Enumerates values returned by the Absolute, Fixed, and Relative members.

public enum VolumeControl
type VolumeControl = 
Inheritance
VolumeControl

Fields

Name Value Description
Fixed 0

The volume is fixed and can not be modified. Requests to change volume should be ignored.

Android reference for android.media.VolumeProvider.VOLUME_CONTROL_FIXED.

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.

Relative 1

The volume control uses relative adjustment via onAdjustVolume(int). Attempts to set the volume to a specific value should be ignored.

Android reference for android.media.VolumeProvider.VOLUME_CONTROL_RELATIVE.

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.

Absolute 2

The volume control uses an absolute value. It may be adjusted using onAdjustVolume(int) or set directly using onSetVolumeTo(int).

Android reference for android.media.VolumeProvider.VOLUME_CONTROL_ABSOLUTE.

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.

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