gpt4 book ai didi

c# - 您应该在 Windows 8 应用程序的哪个位置编码 'privacy policy' ?

转载 作者:太空狗 更新时间:2023-10-29 19:51:59 24 4
gpt4 key购买 nike

我的应用程序未通过认证,原因是:“4.1.1 如果您的应用程序具有网络功能,则它必须具有隐私声明. . .您必须在应用的说明页面以及 Windows 设置 super 按钮中显示的应用设置中提供对隐私政策的访问权限。”

他们在说什么?什么描述?如何设置在 Windows 设置中显示的信息?

应用程序是 C#

最佳答案

要添加指向您的隐私政策的链接:

//using Windows.UI.ApplicationSettings;
//using System;

// You can put this event handler somewhere in a main class that runs your app.
// I put it in may main view model.
SettingsPane.GetForCurrentView().CommandsRequested += ShowPrivacyPolicy;

// Method to add the privacy policy to the settings charm
private void ShowPrivacyPolicy(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
{
SettingsCommand privacyPolicyCommand = new SettingsCommand("privacyPolicy","Privacy Policy", (uiCommand) => { LaunchPrivacyPolicyUrl(); });
args.Request.ApplicationCommands.Add(privacyPolicyCommand);
}

// Method to launch the url of the privacy policy
async void LaunchPrivacyPolicyUrl()
{
Uri privacyPolicyUrl = new Uri("http://www.yoursite.com/privacypolicy");
var result = await Windows.System.Launcher.LaunchUriAsync(privacyPolicyUrl);
}

关于c# - 您应该在 Windows 8 应用程序的哪个位置编码 'privacy policy' ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13280292/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com