如何检索允许与其他人共享的授权事项列表。 [英] How can I retrieve authorized things list that is allowed to share from other person.

查看:69
本文介绍了如何检索允许与其他人共享的授权事项列表。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道允许其他人分享的内容列表。

I want to know the list of things that is allowed to share from other person.

例如,我有帐户"A"并且记录id是'a'而帐户是'B"记录ID为"b"。 " B"是否同意与帐户"A"分享体重和身高(事物)。帐户A的记录ID为"a"。和"b"现在。

for example, I have account "A" and record id is 'a' and account "B" has record id "b". "b" is  agreed to share weight and height (thing) with account "A". account A has record id "a" and "b" now.

应用程序想要知道哪些内容属于记录ID"b"。是可以访问的。

application wants to know which things belongs to record id "b" is can be accessible.

是否有任何方法可以获取此信息?

is there any method to get this information?

推荐答案

如果您正在使用应用程序并且用户授权记录"b"供您的申请使用,以授权记录"b"它必须具有适当的权限。

If you're using an application and the user authorized record "b" to be used by your application, to authorize record "b" it must have had the proper permissions.

例如,如果您的应用程序需要访问高度和重量,那么已经授权给您的应用程序的记录意味着您可以访问高度和重量对象。这是基本情况。

For example if your application requires access to Height and Weight, the records that have been authorized to your application means that you have access to the Height and Weight objects. This is the basic case.

现在,如果您的应用程序只有可选的高度和重量要求,那么您将不得不查询您的应用程序是否可以访问这些类型。一般情况不要求这样。在Android SDK中,查找QueryPermissions
方法,该方法允许您检查具有该记录的应用是否可以访问N种类型。

Now if your application only has optional requirement of height and weight, then you will have to query whether or not your application has access to those types. General case doesn't require this. In the Android SDK, look for the method QueryPermissions which will allow you to check whether or not your app with that record has access to N types.


这篇关于如何检索允许与其他人共享的授权事项列表。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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