Show / Hide Table of Contents

Class Carousel

A carousel, also known as a slider, rotates and displays a list of widgets in a slideshow format, with buttons navigating to the previous or next widget.

For example, this is a JSON representation of a carousel that contains three text paragraph widgets.

{
  "carouselCards": [
    {
      "widgets": [
        {
          "textParagraph": {
            "text": "First text paragraph in carousel",
          }
        }
      ]
    },
    {
      "widgets": [
        {
          "textParagraph": {
            "text": "Second text paragraph in carousel",
          }
        }
      ]
    },
    {
      "widgets": [
        {
          "textParagraph": {
            "text": "Third text paragraph in carousel",
          }
        }
      ]
    }
  ]
}

Google Chat apps:

Inheritance
object
Carousel
Implements
IMessage<Carousel>
IEquatable<Carousel>
IDeepCloneable<Carousel>
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 Carousel : IMessage<Carousel>, IEquatable<Carousel>, IDeepCloneable<Carousel>, IBufferMessage, IMessage

Constructors

Carousel()

Declaration
public Carousel()

Carousel(Carousel)

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

Properties

CarouselCards

A list of cards included in the carousel.

Declaration
public RepeatedField<Carousel.Types.CarouselCard> CarouselCards { get; }
Property Value
Type Description
RepeatedField<Carousel.Types.CarouselCard>
In this article
Back to top Generated by DocFX