Is the Windows.ApplicationModel.LockScreen namespace available for non-kiosk use?

随声附和 提交于 2019-12-07 20:06:37

问题


The MSDN documentation for the Windows.ApplicationModel.LockScreen namespace claims that "You can create an app that acts as the lock screen, allowing greater user personalization". I'm interested in creating a custom lock screen for Windows 10 Mobile.

However, my quest for further documentation yielded only an article about creating a Windows 10 desktop kiosk app.

So, my question is simple--is it actually possible to create a custom Windows 10 Mobile lock screen with these classes?


回答1:


There are a few different things here that are probably confusing things. unfortunately they are not very common scenarios so documentation is lacking.

You can use the Windows.ApplicationModel.LockScreen namespace for customising the display of the lock screen. This can be used to change the wallpaper or notification counts. It is probably the most common form of lock screen customization as it can be done by any app.

You can also use the functionality in this namespace to create an alternative lock screen. This could have different behaviour to the process of swipe up and enter password/PIN or Microsoft Hello face detection.
Creating such an app and distributing through the store requires extra permissions than 3rd party developers typically have.

"Kiosk mode" apps are created as apps that run above the lock screen. Such apps have no real connection to lock screen replacements but are related in their use of similar underlying elements of the OS.

In terms of what you are trying to achieve, it sounds like you should be able to do this by declaring the windows.lockScreen extension and then using LockApplicationHost to do the actual unlocking. As mentioned above the lack of a way for 3rd parties to distribute such apps through the store means there is a lack of documentation in this area but it should be possible.

One thing to take note of in such an app is an under even greater memory/resource constraints than a typical app and so you should keep this in mind during your planning and development.



来源:https://stackoverflow.com/questions/34266290/is-the-windows-applicationmodel-lockscreen-namespace-available-for-non-kiosk-use

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!