Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Is there any way to detect UWP desktop idle? #9174

Open
headsea opened this issue Dec 18, 2023 · 0 comments
Open

Question: Is there any way to detect UWP desktop idle? #9174

headsea opened this issue Dec 18, 2023 · 0 comments
Labels
feature proposal New feature proposal

Comments

@headsea
Copy link

headsea commented Dec 18, 2023

Per #2609, Window.Current only returns null if UWP desktop. So I can't use Window.Current.CoreWindow.PointerPressed += onCoreWindowPointerHandler; to detect user's activities.
As a tradeoff, we use internal Webview to catch mouse/pointer events, so I tried WebView.PointerPressed += OnPointerHandler;, but this kind of events was never caught.
Who can suggested that how I can implement UWP desktop idle timeout functionality? Thanks.

@headsea headsea added the feature proposal New feature proposal label Dec 18, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Dec 18, 2023
@bpulliam bpulliam removed the needs-triage Issue needs to be triaged by the area owners label Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature proposal New feature proposal
Projects
None yet
Development

No branches or pull requests

2 participants