public sealed class ContextualTrigger : IMessage<ContextualTrigger>, IEquatable<ContextualTrigger>, IDeepCloneable<ContextualTrigger>, IBufferMessage, IMessage
Defines a trigger that fires when the open email meets a specific criteria.
When the trigger fires, it executes a specific endpoint, usually
in order to create new cards and update the UI.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The `ContextualTrigger` class defines a trigger that activates when an email meets specific criteria, executing a designated endpoint to update the user interface."],["This class, part of the `Google.Apps.Script.Type.Gmail` namespace, inherits from `Object` and implements multiple interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The `ContextualTrigger` class is designed with two constructors: a default constructor and one that takes another `ContextualTrigger` as a parameter for creating copies."],["The `OnTriggerFunction` property specifies the endpoint that is called when the trigger is activated, while the `TriggerCase` property defines which trigger type is in use."],["`UnconditionalTrigger` is a property that allows a trigger to be executed whenever any email message is opened."]]],[]]