Windows UWP 作为屏幕保护程序? [英] Windows UWP as Screensaver?

查看:26
本文介绍了Windows UWP 作为屏幕保护程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Windows 10 上,可以将 UWP 作为屏幕保护程序启动吗?如果是这样,您如何向操作系统注册您的应用,以便在屏幕保护程序对话框中列出它?

On Windows 10, can a UWP be launched as a screensaver? If so, how do you register your app with the OS such that it gets listed in the screensaver dialog?

(Windows 8 商店应用不能做屏保.我找不到有关 UWP 的任何信息)

(Windows 8 store apps cannot be screensavers. I cannot find any information on UWPs)

推荐答案

很抱歉让您失望了,但是不行,您不能将您的 UWP 应用设置为屏幕保护程序提供程序.

I am very sorry to disappoint you, but no, you can not set your UWP app as a screensaver provider.

您可以做的是让用户让您的应用控制锁定屏幕或壁纸图像.即使在使用 UserProfilePersonalizationSettings 类:

What you could do instead is offering the user to give your app control of the lock screen or wallpaper image. UWP apps are able to set these images even when running in a background task with the UserProfilePersonalizationSettings class:

// Lock Screen
await UserProfilePersonalizationSettings.Current.TrySetLockScreenImageAsync(StorageFile);

// Wallpaper
await UserProfilePersonalizationSettings.Current.TrySetWallpaperImageAsync(StorageFile);

这篇关于Windows UWP 作为屏幕保护程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆