Show / Hide Table of Contents

Class GoogleAppsCardV1Icon

An icon displayed in a widget on a card. For an example in Google Chat apps, see Add an icon. Supports built-in and custom icons. Google Workspace add-ons and Chat apps:

Inheritance
object
GoogleAppsCardV1Icon
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.HangoutsChat.v1.Data
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class GoogleAppsCardV1Icon : IDirectResponseSchema

Properties

AltText

Optional. A description of the icon used for accessibility. If unspecified, the default value Button is provided. As a best practice, you should set a helpful description for what the icon displays, and if applicable, what it does. For example, A user's account portrait, or Opens a new browser tab and navigates to the Google Chat developer documentation at https://developers.google.com/workspace/chat. If the icon is set in a Button, the altText appears as helper text when the user hovers over the button. However, if the button also sets text, the icon's altText is ignored.

Declaration
[JsonProperty("altText")]
public virtual string AltText { get; set; }
Property Value
Type Description
string

ETag

The ETag of the item.

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

IconUrl

Display a custom icon hosted at an HTTPS URL. For example:

"iconUrl":
"https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png"

Supported file types include .png and .jpg.

Declaration
[JsonProperty("iconUrl")]
public virtual string IconUrl { get; set; }
Property Value
Type Description
string

ImageType

The crop style applied to the image. In some cases, applying a CIRCLE crop causes the image to be drawn larger than a built-in icon.

Declaration
[JsonProperty("imageType")]
public virtual string ImageType { get; set; }
Property Value
Type Description
string

KnownIcon

Display one of the built-in icons provided by Google Workspace. For example, to display an airplane icon, specify AIRPLANE. For a bus, specify BUS. For a full list of supported icons, see built-in icons.

Declaration
[JsonProperty("knownIcon")]
public virtual string KnownIcon { get; set; }
Property Value
Type Description
string

MaterialIcon

Display one of the Google Material Icons. For example, to display a checkbox icon, use

"material_icon": { "name": "check_box" }

Google Chat apps:

Declaration
[JsonProperty("materialIcon")]
public virtual GoogleAppsCardV1MaterialIcon MaterialIcon { get; set; }
Property Value
Type Description
GoogleAppsCardV1MaterialIcon

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX