是",;访问内容”;通过Javascript UWP api提供的Xbox One设置值?

是",;访问内容”;通过Javascript UWP api提供的Xbox One设置值?,javascript,uwp,xbox-one,Javascript,Uwp,Xbox One,我们正在为Xbox One开发UWP应用程序。我们希望通过检查当前用户的内容限制来过滤应用程序中的内容 我们希望能够通过过滤用户的内容访问权限设置之上的任何内容,为我们的应用程序获得较低的年龄评级,这些设置可以在设置->帐户->内容限制->内容访问权限中找到。但是,我们在Javascript api中找不到任何表示此设置的属性 是否可以从Javascript UWP平台检索此设置的值?经过大量搜索和实验,我终于找到了解决方案: Windows.Media.ContentRestrictions.

我们正在为Xbox One开发UWP应用程序。我们希望通过检查当前用户的内容限制来过滤应用程序中的内容

我们希望能够通过过滤用户的
内容访问权限
设置之上的任何内容,为我们的应用程序获得较低的年龄评级,这些设置可以在
设置->帐户->内容限制->内容访问权限
中找到。但是,我们在Javascript api中找不到任何表示此设置的属性


是否可以从Javascript UWP平台检索此设置的值?

经过大量搜索和实验,我终于找到了解决方案:

Windows.Media.ContentRestrictions.RatedContentRestrictions()
    .getBrowsePolicyAsync()
    .then(function (result) {
        /* 
         * "result" contains a ContentRestrictionsBrowsePolicy object which 
         * provides all the information I need.
         */
    });

查看课程了解更多信息。

经过大量搜索和实验,我终于找到了解决方案:

Windows.Media.ContentRestrictions.RatedContentRestrictions()
    .getBrowsePolicyAsync()
    .then(function (result) {
        /* 
         * "result" contains a ContentRestrictionsBrowsePolicy object which 
         * provides all the information I need.
         */
    });
更多信息,请查看课程