2
0
mirror of https://github.com/boltex/cordova-plugin-powermanagement.git synced 2025-10-09 14:02:13 -06:00

[WP] run under lock screen as well

This commit is contained in:
Viras- 2013-09-20 18:53:58 +02:00
parent 11dbab7a9b
commit d2aa71333b

View File

@ -32,6 +32,7 @@ namespace Cordova.Extension.Commands
{ {
public void acquire(string options) { public void acquire(string options) {
PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled; PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
PhoneApplicationService.Current.ApplicationIdleDetectionMode = IdleDetectionMode.Disabled;
DispatchCommandResult(); DispatchCommandResult();
} }