TwitterCardPropertyParser class final
Twitter card implementations of MetaPropertyParser.
This parser will handle <meta>
property which starting with
twitter:
.
Twitter card is created by Twitter (now known as X) which uses for display rich information link in Twitter.
The MetaInfo.url will be linked to corresponded user name or it's ID in X and it does not offered any AudioInfo in MetaInfo.audios.
Note for embedded player property
Since OgHref media player only recognizes raw video files,
unless twitter:player:stream
is offered with raw video
content URL, it will apply iframe player URL first and removed
when constructing MetaInfo.
- Inheritance
-
- Object
- MetaPropertyParser
- TwitterCardPropertyParser
Constructors
- TwitterCardPropertyParser({@Deprecated("twitter.com is used for redirect to x.com now.") bool legacyDomain = false})
-
Construct a parser of Twitter Card with decision of
using
legacyDomain
.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- legacyDomain → bool
-
Uses
twitter.com
instead ofx.com
when constructing link to X's profile.final - propertyNamePrefix → String
-
Prefix of property's name which identify which rich information
provider is used.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
Element htmlHead) → MetaInfo -
Resolve rich information metadata from given
htmlHead
which is<head>
Element
in HTML.inherited -
resolveMetaTags(
MetaInfoAssigner assigner, Iterable< PropertyPair> propertyPair) → void -
Actual implementation of assigning MetaInfo given all
<meta>
Element
with corresponded propertyNamePrefix.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited