Link Search Menu Expand Document

Constructor: mediaAreaWeather

Back to constructors index

Represents a weather widget ».

Attributes:

NameTypeRequiredDescription
coordinatesMediaAreaCoordinatesYesThe size and location of the media area corresponding to the widget on top of the story media.
emojistringYesWeather emoji, should be rendered as an animated emoji.
temperature_cdoubleYesTemperature in degrees Celsius.
colorintYesARGB background color.

Type: MediaArea

Example:

$mediaAreaWeather = ['_' => 'mediaAreaWeather', 'coordinates' => MediaAreaCoordinates, 'emoji' => 'string', 'temperature_c' => double, 'color' => int];