نمادهای پیوست را ارائه دهید
افزونههای تقویم به توسعهدهندگان اجازه میدهند با استفاده از EventAttachmentTrigger پیوستهای سفارشی را به رویدادهای تقویم اضافه کنند. این پیوستهای سفارشی میتوانند به صورت اختیاری یک URL تصویر را مشخص کنند که به عنوان نماد پیوست در داخل رویداد تقویم نمایش داده میشود. از آنجایی که این تصاویر مستقیماً در تقویم استفاده می شوند، باید آنها را در زیرساخت Google میزبانی کنید. به طور خاص، باید از همان نمادی استفاده کنید که برای افزودنیهای فهرست فروشگاه Google Workspace Marketplace استفاده میکنید.
برای به دست آوردن یک URL تصویر که می تواند به عنوان attachment.iconUrl
استفاده شود:
- کنسول Google Cloud را باز کنید.
- در صورت لزوم، به پروژه میزبان افزونه خود بروید.
- در بالا سمت چپ، روی menu > APIs & Services کلیک کنید.
- در لیست پایین، روی Google Workspace Marketplace SDK کلیک کنید.
- برگه فهرست فروشگاه را انتخاب کنید.
- در بخش Graphics Assets ، تصویر نماد پیوست مورد نظر را به عنوان یک Application Icon 32x32 آپلود کنید.
- URL تصویر حاصل را کپی کنید و از آن به عنوان
attachment.iconUrl
استفاده کنید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-02-16 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-02-16 بهوقت ساعت هماهنگ جهانی."],[[["Calendar add-ons allow developers to add custom attachments with optional icons to Calendar events using the EventAttachmentTrigger."],["Attachment icons must be hosted on Google's infrastructure and be the same icon used for the add-on's Google Workspace Marketplace store listing."],["To obtain the image URL for attachment icons, developers need to upload the icon as an \"Application Icon 32x32\" in the Google Cloud console's Google Workspace Marketplace SDK Store Listing section and use the resulting URL."]]],["Developers can add custom attachments to Calendar events using the `EventAttachmentTrigger`. These attachments can have icons, which must be hosted on Google's infrastructure. To get a valid icon URL, navigate to the Google Cloud console, switch to the add-on's project, and access the Google Workspace Marketplace SDK. In the \"Store Listing\" tab's \"Graphics Assets\" section, upload the icon image (32x32) as an \"Application Icon\", then copy and use the generated image URL as the `attachment.iconUrl`.\n"]]