|
Spring Social Twitter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.social.twitter.api.OEmbedOptions
public class OEmbedOptions
| Constructor Summary | |
|---|---|
OEmbedOptions()
|
|
| Method Summary | |
|---|---|
OEmbedOptions |
align(java.lang.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(java.lang.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(java.lang.String related)
Suggested Twitter accounts that might be related to the embedded tweet. |
org.springframework.util.MultiValueMap<java.lang.String,java.lang.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(java.lang.String align)
align - The alignment value. Either left, right, center, or none. Defaults to none.public OEmbedOptions related(java.lang.String related)
related - A comma-separated list of Twitter screen names to recommend.public OEmbedOptions language(java.lang.String lang)
lang - The language code. Example: "fr"public org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> toRequestParameters()
|
Spring Social Twitter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||