mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-13 16:38:08 -05:00
22 lines
533 B
C#
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;
|
|
}
|
|
|
|
}
|
|
}
|