publishEmbeddedTimeline abstract method
- required String screenName,
- String? listName,
- int? limit,
- int? maxWidth,
- int? maxHeight,
- bool? omitScript,
- ContentLanguage? lang,
- ContentTheme? theme,
- String? borderColor,
- TimelineWidgetType? widgetType,
- bool? dnt,
Converts the specified timeline to Embedded Content format.
If only screenName
is specified as an argument, the embedded timeline
is the profile of the user associated with the specified screenName
. If
screenName
and listName
are passed, then the list of specified users
will be the embedded timeline.
Parameters
-
screenName
: The screen name of the user to be embedded. -
listName
: The name of the Twitter list to be embedded. -
limit
: Display up to N items where N is a value between 1 and 20 inclusive. -
maxWidth
: Set the maximum width of the widget. Must be between 180 and 1200 inclusive -
maxHeight
: Set the maximum height of the widget. Must be greater than 200. -
omitScript
: Do not include a script element in the response. -
lang
: A supported Twitter language code. -
relatedScreenNames
: Suggest additional Twitter screen names related to the widget. Twitter may suggest these accounts to follow after the user likes a displayed Tweet. You may provide a brief description of how the account relates to the Tweet with a URL-encoded comma and text after the screen name. -
theme
: When set todark
, the timeline is displayed with light text over a dark background. -
borderColor
: Set the color of widget component borders, including the border between Tweets, with a hexadecimal color value. -
widgetType
: Collection timelines only. Set togrid
to display Tweets in a grid layout. -
dnt
: When set to true, the timeline and its embedded page on your site are not used for purposes that include personalized suggestions and personalized ads.
Reference
Implementation
Future<EmbeddedTimeline> publishEmbeddedTimeline({
required String screenName,
String? listName,
int? limit,
int? maxWidth,
int? maxHeight,
bool? omitScript,
ContentLanguage? lang,
List<String>? relatedScreenNames,
ContentTheme? theme,
String? borderColor,
TimelineWidgetType? widgetType,
bool? dnt,
});