Files
phonegap-plugins/WindowsPhone/PowerManagement/PowerManagement.cs
2013-05-20 07:16:57 +02:00

22 lines
533 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Phone.Shell;
namespace WPCordovaClassLib.Cordova.Commands
{
class PowerManagement : BaseCommand
{
public void acquire(string options) {
PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
}
public void release(string options)
{
PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Enabled;
}
}
}