Show / Hide Table of Contents

Class Image

An image that is specified by a URL and can have an onClick action. For an example, see Add an image.

Google Workspace Add-ons and Chat apps:

Inheritance
object
Image
Implements
IMessage<Image>
IEquatable<Image>
IDeepCloneable<Image>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Apps.Card.V1
Assembly: Google.Apps.Card.V1.dll
Syntax
public sealed class Image : IMessage<Image>, IEquatable<Image>, IDeepCloneable<Image>, IBufferMessage, IMessage

Constructors

Image()

Declaration
public Image()

Image(Image)

Declaration
public Image(Image other)
Parameters
Type Name Description
Image other

Properties

AltText

The alternative text of this image that's used for accessibility.

Declaration
public string AltText { get; set; }
Property Value
Type Description
string

ImageUrl

The HTTPS URL that hosts the image.

For example:

https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png
Declaration
public string ImageUrl { get; set; }
Property Value
Type Description
string

OnClick

When a user clicks the image, the click triggers this action.

Declaration
public OnClick OnClick { get; set; }
Property Value
Type Description
OnClick
In this article
Back to top Generated by DocFX