| mobisocial.omlib.sendable.RdlSendable |
Represents a "Rich Deep Link" (RDL) that can be sent to a feed. RDL is an extension of Deep Links that includes a renderable component.
An RDL's visualization is defined by the following elements:
displayTitledisplayTextdisplayCaptiondisplayThumbnailEither displayText or displayCaption may be specified but not both.
displayText would be rendered next to an image thumbnail with wrapping, while
displayCaption is displayed below the thumbnail.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| RdlSendable() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| RdlSendable |
setCallback(String callback)
Sets a callback that should be issued when this object is clicked.
| ||||||||||
| RdlSendable |
setDisplayCaption(String caption)
A caption to display below the picture of this object
| ||||||||||
| RdlSendable |
setDisplayText(String text)
Sets a text component for this object.
| ||||||||||
| RdlSendable |
setDisplayThumbnailUrl(String displayThumbnailUrl)
Adds a display thumbnail to this sendable.
| ||||||||||
| RdlSendable |
setDisplayTitle(String title)
A title to display for this RDL
| ||||||||||
| RdlSendable |
setJsonMetadata(JSONObject json)
Attach json-encoded metadata to this object.
| ||||||||||
| RdlSendable |
setNoun(String noun)
User-visible type information for this RDL.
| ||||||||||
| RdlSendable |
setPayload(byte[] payload)
Append a small binary payload to this object.
| ||||||||||
| RdlSendable |
setWebCallback(String callback)
Sets a web-accessible callback that can be issued when this object is clicked,
if the native callback is not available.
| ||||||||||
Sets a callback that should be issued when this object is clicked.
A caption to display below the picture of this object
Adds a display thumbnail to this sendable. The thumbnail will appear in the database
under the field 'displayThumbnailHash'.
uriForBlob(Context, byte[])
can retrieve the image's data.
Sets a web-accessible callback that can be issued when this object is clicked, if the native callback is not available.