Lingua

MediaCard Class

Definition

Caution

MediaCard is a structural base without an Activity Protocol content type. Use AnimationCard, AudioCard, or VideoCard instead. Will be removed in a future release.

Media card.

[System.Obsolete("MediaCard is a structural base without an Activity Protocol content type. Use AnimationCard, AudioCard, or VideoCard instead. Will be removed in a future release.")]
public class MediaCard
[<System.Obsolete("MediaCard is a structural base without an Activity Protocol content type. Use AnimationCard, AudioCard, or VideoCard instead. Will be removed in a future release.")>]
type MediaCard = class
Public Class MediaCard
Inheritance
MediaCard
Attributes

Constructors

Name Description
MediaCard()

Initializes a new instance of MediaCard.

MediaCard(String, String, String, ThumbnailUrl, IList<MediaUrl>, IList<CardAction>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, Object, String)

Initializes a new instance of MediaCard.

Properties

Name Description
Aspect

Aspect ratio of thumbnail/media placeholder. Allowed values are Standard and WideScreen.

Autoloop

Should the client loop playback at end of content (default:true).

Autostart

Should the client automatically start playback of media in this card (default:true).

Buttons

Actions on this card.

Duration

Describes the length of the media content without requiring a receiver to open the content. Formatted as an ISO 8601 Duration field.

Image

Thumbnail URL.

Media

Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content.

Shareable

This content may be shared with others (default:true).

Subtitle

Subtitle of this card.

Text

Text of this card.

Title

Title of this card.

Value

Supplementary parameter for this card.

Methods

Name Description
AddButton(CardAction)

Adds a button and returns this card.

AddMedia(MediaUrl)

Adds a media URL and returns this card.

AddMedia(String, String)

Adds a media URL by string and returns this card.

Applies to