public sealed class UniversalAction : IMessage<UniversalAction>, IEquatable<UniversalAction>, IDeepCloneable<UniversalAction>, IBufferMessage, IMessageReference documentation and code samples for the Google.Apps.Script.Type class UniversalAction.
An action that is always available in the add-on toolbar menu regardless of message context.
Implements
IMessageUniversalAction, IEquatableUniversalAction, IDeepCloneableUniversalAction, IBufferMessage, IMessageNamespace
Google.Apps.Script.Type.GmailAssembly
Google.Apps.Script.Type.dll
Constructors
UniversalAction()
public UniversalAction()UniversalAction(UniversalAction)
public UniversalAction(UniversalAction other)| Parameter | |
|---|---|
| Name | Description |
other |
UniversalAction |
Properties
ActionTypeCase
public UniversalAction.ActionTypeOneofCase ActionTypeCase { get; }| Property Value | |
|---|---|
| Type | Description |
UniversalActionActionTypeOneofCase |
|
HasOpenLink
public bool HasOpenLink { get; }Gets whether the "open_link" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasRunFunction
public bool HasRunFunction { get; }Gets whether the "run_function" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
OpenLink
public string OpenLink { get; set; }A link that is opened by Gmail when the user triggers the action.
| Property Value | |
|---|---|
| Type | Description |
string |
|
RunFunction
public string RunFunction { get; set; }An endpoint that is called when the user triggers the action. See the universal actions guide for details.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Text
public string Text { get; set; }Required. User-visible text describing the action, for example, "Add a new contact."
| Property Value | |
|---|---|
| Type | Description |
string |
|