🔇 MvvmCross Plugin to handle the device's volume
This plugin allows you to handle the device's volume in any MvvmCross project.
Install via NuGet using:
PM> Install-Package Mvx.Volume
Resolve it:
var volumeService = Mvx.Resolve<IVolumeService>();
Use it at will:
//Sets the volume. Parameter must be between 0 and 100, inclusive, or else this will throw.
volumeService.Set(50);
//Convenient alias to volumeService.Set(0)
volumeService.Mute();
Check the Sample projects for a working example.
Icon Mute by Gregor Cresnar from the Noun Project