简体   繁体   English

如何在我的应用中打开锁定屏幕设置页面?

[英]How can I open up lock screen settings page in my app?

I've made a hyperlink and implemented the click event, but how can I make it so that it opens up the lock screen settings page for my phone? 我已经制作了一个超链接并实现了点击事件,但是如何才能打开它以便打开手机的锁定屏幕设置页面?

I want to shortcut it for my users so they can set up notifications 我想为我的用户快捷方式,以便他们可以设置通知

You can't open the lock screens settings from your code in WP7. 您无法从WP7中的代码中打开锁定屏幕设置。

I know you've tagged it windows-phone7 but here's how you can do it in WP8 for those who come across this question and are targetting WP8. 我知道你已经将它标记为windows-phone7但是这里是你如何在WP8中为那些遇到这个问题并且正在瞄准WP8的人做的。 Simply use the LaunchUriAsync method 只需使用LaunchUriAsync方法即可

var openedLock = await Launcher.LaunchUriAsync(new Uri("ms-settings-lock:"));

ms-settings-lock is the lock screen settings URI but you can see the other available URI schemes here . ms-settings-lock是锁定屏幕设置URI,但您可以在此处查看其他可用的URI方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM