public class OEmbedOptions extends Object
Constructor and Description |
---|
OEmbedOptions() |
Modifier and Type | Method and Description |
---|---|
OEmbedOptions |
align(String align)
Specifies how the embedded tweet should be aligned.
|
OEmbedOptions |
hideMedia()
Specify that the embedded Tweet should not show images that were posted with the tweet.
|
OEmbedOptions |
hideThread()
Specify that the embedded Tweet should not show the original message if the tweet is a reply.
|
OEmbedOptions |
language(String lang)
Specifies the language code for the embedded tweet.
|
OEmbedOptions |
maxWidth(int maxWidth)
Specify the maximum width in pixels that the embedded tweet should be rendered at.
|
OEmbedOptions |
omitScript()
Specify that the embedded Tweet should not include a <script> element pointing to widgets.js.
|
OEmbedOptions |
related(String related)
Suggested Twitter accounts that might be related to the embedded tweet.
|
MultiValueMap<String,String> |
toRequestParameters() |
public OEmbedOptions maxWidth(int maxWidth)
maxWidth
- the maximum width. Must be between 250 and 550.public OEmbedOptions hideMedia()
public OEmbedOptions hideThread()
public OEmbedOptions omitScript()
public OEmbedOptions align(String align)
align
- The alignment value. Either left, right, center, or none. Defaults to none.public OEmbedOptions related(String related)
related
- A comma-separated list of Twitter screen names to recommend.public OEmbedOptions language(String lang)
lang
- The language code. Example: "fr"public MultiValueMap<String,String> toRequestParameters()