[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eComposeTrigger\u003c/code\u003e class within the \u003ccode\u003eGoogle.Apps.Script.Type\u003c/code\u003e namespace, specifically for the Gmail context.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eComposeTrigger\u003c/code\u003e class is a sealed class that activates when a user is composing an email and offers capabilities for defining actions via \u003ccode\u003eMenuItemExtensionPoint\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing various functionalities for message handling and object manipulation.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eActions\u003c/code\u003e to define actions for compose time add-ons and \u003ccode\u003eDraftAccess\u003c/code\u003e to define the level of data access.\u003c/p\u003e\n"],["\u003cp\u003eMultiple versions of this documentation are available, ranging from version 1.0.0 to the latest, 2.3.0, showing the evolution of the \u003ccode\u003eComposeTrigger\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,["# Google.Apps.Script.Type - Class ComposeTrigger (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail.ComposeTrigger)\n- [2.2.0](/dotnet/docs/reference/Google.Apps.Script.Type/2.2.0/Google.Apps.Script.Type.Gmail.ComposeTrigger)\n- [2.1.0](/dotnet/docs/reference/Google.Apps.Script.Type/2.1.0/Google.Apps.Script.Type.Gmail.ComposeTrigger)\n- [2.0.0](/dotnet/docs/reference/Google.Apps.Script.Type/2.0.0/Google.Apps.Script.Type.Gmail.ComposeTrigger)\n- [1.1.0](/dotnet/docs/reference/Google.Apps.Script.Type/1.1.0/Google.Apps.Script.Type.Gmail.ComposeTrigger)\n- [1.0.0](/dotnet/docs/reference/Google.Apps.Script.Type/1.0.0/Google.Apps.Script.Type.Gmail.ComposeTrigger) \n\n public sealed class ComposeTrigger : IMessage\u003cComposeTrigger\u003e, IEquatable\u003cComposeTrigger\u003e, IDeepCloneable\u003cComposeTrigger\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google.Apps.Script.Type class ComposeTrigger.\n\nA trigger that activates when user is composing an email. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ComposeTrigger \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ComposeTrigger](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail.ComposeTrigger), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ComposeTrigger](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail.ComposeTrigger), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ComposeTrigger](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail.ComposeTrigger), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Apps.Script.Type.Gmail](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail)\n\nAssembly\n--------\n\nGoogle.Apps.Script.Type.dll\n\nConstructors\n------------\n\n### ComposeTrigger()\n\n public ComposeTrigger()\n\n### ComposeTrigger(ComposeTrigger)\n\n public ComposeTrigger(ComposeTrigger other)\n\nProperties\n----------\n\n### Actions\n\n public RepeatedField\u003cMenuItemExtensionPoint\u003e Actions { get; }\n\nDefines the set of actions for compose time add-on. These are actions\nthat user can trigger on a compose time addon.\n\n### DraftAccess\n\n public ComposeTrigger.Types.DraftAccess DraftAccess { get; set; }\n\nDefine the level of data access when a compose time addon is triggered."]]