Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.
/ Mvx.Volume Public archive

🔇 MvvmCross Plugin to handle the device's volume

Notifications You must be signed in to change notification settings

heytherewill/Mvx.Volume

Repository files navigation

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

🔇 MvvmCross Plugin to handle the device's volume

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published