FileDocCategorySizeDatePackage
VolumeProviderCompatApi21.javaAPI DocAndroid 5.1 API1534Thu Mar 12 22:22:56 GMT 2015android.support.v4.media

VolumeProviderCompatApi21

public class VolumeProviderCompatApi21 extends Object

Fields Summary
Constructors Summary
Methods Summary
public static java.lang.ObjectcreateVolumeProvider(int volumeControl, int maxVolume, int currentVolume, android.support.v4.media.VolumeProviderCompatApi21$Delegate delegate)

        return new VolumeProvider(volumeControl, maxVolume, currentVolume) {
            @Override
            public void onSetVolumeTo(int volume) {
                delegate.onSetVolumeTo(volume);
            }

            @Override
            public void onAdjustVolume(int direction) {
                delegate.onAdjustVolume(direction);
            }
        };
    
public static voidsetCurrentVolume(java.lang.Object volumeProviderObj, int currentVolume)

        ((VolumeProvider) volumeProviderObj).setCurrentVolume(currentVolume);