تقديم رموز المرفقات
تتيح إضافات "تقويم Google" للمطوّرين إضافة مرفقات مخصّصة إلى أحداث "تقويم Google"
من خلال استخدام العنصر
EventAttachmentTrigger.
يمكن أن تحدِّد هذه المرفقات المخصّصة اختياريًا عنوان URL للصورة الذي يتم عرضه
كرمز المرفق داخل حدث "تقويم Google". وبما أنّه يتم استخدام هذه الصور
داخل "تقويم Google" مباشرةً، يجب استضافتها على البنية الأساسية لشركة Google.
وعلى وجه التحديد، يجب استخدام الرمز نفسه الذي تستخدمه في بطاقة بيانات المتجر الخاصة بالإضافات في Google Workspace Marketplace.
للحصول على عنوان URL لصورة يمكن استخدامه كattachment.iconUrl
:
- افتح
Google Cloud Console.
- إذا لزم الأمر، انتقِل إلى المشروع الذي يستضيف الإضافة.
- في أعلى يمين الصفحة، انقر على رمز القائمة menu >
واجهات برمجة التطبيقات والخدمات.
- في القائمة في أسفل الصفحة، انقر على حزمة تطوير البرامج (SDK) في Google Workspace Marketplace.
- انقر على علامة التبويب بطاقة بيانات المتجر.
- في قسم أصول الرسومات، حمِّل صورة رمز المرفق المقصود
بتنسيق رمز التطبيق 32×32.
- انسخ عنوان URL للصورة الناتجة واستخدِمه كـ
attachment.iconUrl
.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة 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"]]