- نحو:
<permission-group android:description="string resource" android:icon="drawable resource" android:label="string resource" android:name="string" />
- موجود در:
-
<manifest>
- توضیحات:
- نامی را برای گروه بندی منطقی مجوزهای مرتبط اعلام می کند. مجوزهای فردی از طریق ویژگی
permissionGroup
عنصر<permission>
به گروه می پیوندند. اعضای یک گروه با هم در رابط کاربری ارائه می شوند.این عنصر به خودی خود یک مجوز را اعلام نمی کند، فقط دسته ای را که می توان مجوزها را در آن قرار داد. برای اطلاعات در مورد اعلام مجوزها و اختصاص آنها به گروه ها، عنصر
<permission>
را ببینید. - صفات:
-
android:description
- متن قابل خواندن توسط کاربر که گروه را توصیف می کند. متن طولانی تر و توضیحی تر از برچسب است. این ویژگی باید به عنوان مرجع یک منبع رشته تنظیم شود. برخلاف ویژگی
label
، نمی تواند یک رشته خام باشد. -
android:icon
- نمادی که مجوز را نشان می دهد. این ویژگی باید به عنوان مرجعی برای یک منبع قابل ترسیم حاوی تعریف تصویر تنظیم شود.
-
android:label
- یک نام قابل خواندن توسط کاربر برای گروه. به عنوان یک راحتی، برچسب را می توان به طور مستقیم به عنوان یک رشته خام در حالی که شما در حال توسعه برنامه هستید تنظیم کنید. با این حال، هنگامی که برنامه آماده انتشار است، آن را به عنوان مرجع یک منبع رشته تنظیم کنید تا مانند رشته های دیگر در رابط کاربری بومی سازی شود.
-
android:name
- نام گروه. این نامی است که می توان به ویژگی
android:permissionGroup
عنصر<permission>
نسبت داد.
-
- معرفی شده در:
- API سطح 1
- همچنین ببینید:
-
<permission>
<permission-tree>
<uses-permission>
<permission-group>
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# <permission-group\u003e\n\nsyntax:\n:\n\n ```xml\n \u003cpermission-group android:description=\"string resource\"\n android:icon=\"drawable resource\"\n android:label=\"string resource\"\n android:name=\"string\" /\u003e\n ```\n\ncontained in:\n: [\u003cmanifest\u003e](/guide/topics/manifest/manifest-element)\n\ndescription:\n: Declares a name for a logical grouping of related permissions. Individual\n permissions join the group through the `permissionGroup` attribute of the\n [\u003cpermission\u003e](/guide/topics/manifest/permission-element) element. Members of a group are\n presented together in the user interface.\n\n\n This element doesn't declare a permission itself, only a category in which permissions can be placed.\n For information about declaring permissions and assigning them to groups, see the\n [\u003cpermission\u003e](/guide/topics/manifest/permission-element) element.\n\nattributes:\n:\n\n `android:description`\n : User-readable text that describes the group. The text is\n longer and more explanatory than the label. This attribute must be\n set as a reference to a string resource. Unlike the `label`\n attribute, it can't be a raw string.\n\n `android:icon`\n : An icon representing the permission. This attribute must be set\n as a reference to a drawable resource containing the image definition.\n\n `android:label`\n : A user-readable name for the group. As a convenience, the label\n can be directly set as a raw string while you're developing the application.\n However, when the application is ready to be published, set it\n as a reference to a string resource, so that it can be localized like other\n strings in the user interface.\n\n `android:name`\n : The name of the group. This is the name that can be assigned to a\n [\u003cpermission\u003e](/guide/topics/manifest/permission-element)\n element's\n [android:permissionGroup](/guide/topics/manifest/permission-element#pgroup)\n attribute.\n\nintroduced in:\n: API level 1\n\nsee also:\n: [\u003cpermission\u003e](/guide/topics/manifest/permission-element)\n\n [\u003cpermission-tree\u003e](/guide/topics/manifest/permission-tree-element)\n\n [\u003cuses-permission\u003e](/guide/topics/manifest/uses-permission-element)"]]