Permission
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
枚举 |
UNSPECIFIED_PERMISSION |
未指定权限。 |
NAME |
请求提供用户的名字和姓氏。 |
DEVICE_PRECISE_LOCATION |
请求获取用户的确切位置、纬度/经度和格式的地址。 |
DEVICE_COARSE_LOCATION |
询问用户的粗略位置信息、邮政编码、城市和国家/地区代码。 |
UPDATE |
请求相应权限以发送更新。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003ePermission values can be unspecified, related to user name, precise or coarse location, or updates.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDEVICE_PRECISE_LOCATION\u003c/code\u003e will request latitude/longitude and formatted address, while \u003ccode\u003eDEVICE_COARSE_LOCATION\u003c/code\u003e only asks for zip code, city, and country code.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eNAME\u003c/code\u003e permission is used to request the user's first and last name.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUPDATE\u003c/code\u003e permission enables sending updates to the user.\u003c/p\u003e\n"]]],[],null,["# Permission\n\nPossible values for permission.\n\n| Enums ||\n|---------------------------|-----------------------------------------------------------------------------|\n| `UNSPECIFIED_PERMISSION` | Unspecified permission. |\n| `NAME` | Ask for user's first and last name. |\n| `DEVICE_PRECISE_LOCATION` | Ask for user's precise location, latitude/longitude, and formatted address. |\n| `DEVICE_COARSE_LOCATION` | Ask for user's coarse location, zip code, city, and country code. |\n| `UPDATE` | Ask for permissions to send updates. |"]]