Universal Volume
class UniversalVolume
UniversalVolume is a singleton class that manages media volume. It supports popular and also exotic Android devices that may use non-standard volume APIs. UniversalVolume manages media volume AudioManager.STREAM_MUSIC only. Make sure to call initialize function before using any other function. Use UniversalVolume.instance to access the singleton instance and call any methods on it.
See also
Properties
Functions
Link copied to clipboard
Adds a listener to the list of volume change listeners.
Link copied to clipboard
Disposes the UniversalVolume instance.
Link copied to clipboard
Initializes the UniversalVolume instance with the given context.
Link copied to clipboard
Removes a listener from the list of volume change listeners.
Link copied to clipboard
Sets the volume to the given percentage value. If showVolumeBar is true, shows the volume bar.