1
Answer

suspend and resume a task

Aswathy AD

Aswathy AD

11y
1.7k
1
Hi,,

            I would like to know how to suspend and resume a task while locking and unlocking the screen. I want to suspend the tasks when the screen is locked and to resume it when the screen is unlocked. I have used IdleDetectionMode.Disabled function and ApplicationIdleModeHelper.Current.HasUserAgreedToRunUnderLock to check the screen lock condition. But it is not working. I am not able to stop the task. Please help me regarding this issue. It would be nice if u could send some useful resources ,classes or links based on this.
Waiting for ur reply.

thanks,
Aswathy.
Answers (1)