heytherewill / Mvx.Volume

:mute: MvvmCross Plugin to handle the device's volume

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

:mute: MvvmCross Plugin to handle the device's volume


Languages

Language:C# 87.0%Language:Shell 11.7%Language:Pascal 1.3%