🔇 MvvmCross Plugin to handle the device's volume
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Client.Core
Client.Droid
Client.iOS
Volume.Droid
Volume.iOS
Volume
nuspec
tools
.gitignore
README.md
Sample.sln
Volume.sln
build.cake
build.sh

README.md

Mvx.Volume Build Status

🔇 MvvmCross Plugin to handle the device's volume

This plugin allows you to handle the device's volume in any MvvmCross project.

Installation

Install via NuGet using:

PM> Install-Package Mvx.Volume

Usage

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.

Acknowledgements

Icon Mute by Gregor Cresnar from the Noun Project