|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.social.twitter.api.OEmbedOptions
public class OEmbedOptions
Constructor Summary | |
---|---|
OEmbedOptions()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OEmbedOptions()
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |