ReplicaAdvertisement
The component for delivering digital versions of print advertisements.
Declaration
object ReplicaAdvertisementProperties
| Name | Type | Description |
|---|---|---|
role Required | string | Always |
URL Required | uri | The URL of the digital version of the print advertisement. The URL can begin with Encode image filenames as Digital version of the print advertisement filenames should be properly encoded as URLs. |
accessibilityCaption | string | A caption that describes the image. VoiceOver uses this text. For more information about VoiceOver, see the Vision page in Accessibility. If you don’t provide |
additions | [ComponentLink] | An array of |
anchor | Anchor | An object that defines vertical alignment with another component. |
animation | (ComponentAnimation | string("none")) | An object that defines an animation you apply to the component. Use the |
behavior | (Behavior | string("none")) | An object that defines behavior for a component, like Parallax or Springy. Use the |
caption | (CaptionDescriptor | string) | A caption that describes the digital version of the print advertisement. The article displays this text when the digital version of the print advertisement is full screen, and VoiceOver uses this text if you don’t provide |
conditional | (ConditionalComponent | [ConditionalComponent]) | An instance or array of component properties that you can apply conditionally, and the conditions that cause Apple News Format to apply them. |
explicitContent | boolean | A Boolean value that indicates the digital version of the print advertisement may contain explicit content. |
hidden | boolean | A Boolean value that determines whether the component is hidden. |
identifier | string | An optional unique identifier for this component. If you use |
layout | (ComponentLayout | string) | An inline If you don’t define |
style | (ComponentStyle | string | string("none")) | An inline Use the |
Discussion
Use the ReplicaAdvertisement component to provide the digital version of the print advertisement as PDF or in image formats like JPG, PNG, and GIF for an article.
Example
{
"components": [
{
"role": "replica_advertisement",
"URL": "bundle://advertisement.pdf"
}
]
}