Interface RcsStandaloneCard.Builder

  • Method Details

    • cardOrientation

      RcsStandaloneCard.Builder cardOrientation(String cardOrientation)

      The orientation of the rich card. Valid values are HORIZONTAL and VERTICAL.

      Parameters:
      cardOrientation - The orientation of the rich card. Valid values are HORIZONTAL and VERTICAL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • thumbnailImageAlignment

      RcsStandaloneCard.Builder thumbnailImageAlignment(String thumbnailImageAlignment)

      The alignment of the thumbnail image in a horizontal card. Valid values are LEFT and RIGHT. Only applicable when CardOrientation is HORIZONTAL.

      Parameters:
      thumbnailImageAlignment - The alignment of the thumbnail image in a horizontal card. Valid values are LEFT and RIGHT. Only applicable when CardOrientation is HORIZONTAL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cardContent

      RcsStandaloneCard.Builder cardContent(RcsCardContent cardContent)

      The content of the rich card, including title, description, media, and card-level suggested actions.

      Parameters:
      cardContent - The content of the rich card, including title, description, media, and card-level suggested actions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cardContent

      default RcsStandaloneCard.Builder cardContent(Consumer<RcsCardContent.Builder> cardContent)

      The content of the rich card, including title, description, media, and card-level suggested actions.

      This is a convenience method that creates an instance of the RcsCardContent.Builder avoiding the need to create one manually via RcsCardContent.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to cardContent(RcsCardContent).

      Parameters:
      cardContent - a consumer that will call methods on RcsCardContent.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: