Back to Amphtml

CAPABILITIES

extensions/amp-viewer-integration/CAPABILITIES.md

latest2.2 KB
Original Source

Viewer Capabilities

Viewers can communicate their supported "capabilities" to documents through the cap init parameter, specified as a comma-separated list.

ParameterSupported messagesDescription
a2aa2aNavigateAMP-to-AMP (A2A) document linking support.
cidcidClient ID service.
errorReportererrorError reporter.
fragmentfragmentURL fragment support for the history API.
handshakepollhandshake-pollMobile web handshake.
iframeScrollViewer platform supports and configures scrolling on the AMP document's iframe.
interceptNavigationnavigateToSupport for navigating to external URLs.
navigateTonavigateToSupport for navigating to external URLs within a native app.
replaceUrlgetReplaceUrlSupport for replacing the document URL with one provided by the viewer.
swipetouchstart, touchmove, touchendForwards touch events from the document to the viewer.
viewerRenderTemplateviewerRenderTemplateProxies all mustache template rendering to the viewer.
xhrInterceptorxhrProxies all XHRs through the viewer.