AmpLinks

interface AmpLinks

Public interface for the AMP Links feature

Properties

Link copied to clipboard

The last AMP link and its destination URL.

Functions

Link copied to clipboard

This method takes a url and returns a AmpLinkType depending on the detected AMP link.

Link copied to clipboard
abstract fun isAnException(url: String): Boolean

This method takes a url and returns true or false depending if the url is in the AMP links exceptions list

Link copied to clipboard
abstract fun processDestinationUrl(initialUrl: String, extractedUrl: String?): String

This method takes an initialUrl and a extractedUrl. It returns a String containing the destination URL after checking extracted URL validity.