Skip to content

MvvmCross Plugin to manipulate device brightness

Notifications You must be signed in to change notification settings

vurf/Mvx.Brightness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mvx.Brightness Build Status

MvvmCross Plugin to manipulate device brightness

Usage

Resolve it:

var brightnessService = Mvx.Resolve<IBrightnessService>();

Use it at will:

// Sets the brightness. Parameter must be between 0 and 1 for iOS and between -1 and 1 for Android, or else this will throw. 
brightnessService.SetBrightness(0.2);

// Get brightness.
brightnessService.GetBrightness();

Check the Sample projects for a working example.

About

MvvmCross Plugin to manipulate device brightness

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published