public class

RdlSendable

mobisocial.omlib.sendable.RdlSendable

Class Overview

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:

  • displayTitle
  • displayText
  • displayCaption
  • displayThumbnail

Either 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.

Summary

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.

Public Constructors

public RdlSendable ()

Public Methods

public RdlSendable setCallback (String callback)

Sets a callback that should be issued when this object is clicked.

public RdlSendable setDisplayCaption (String caption)

A caption to display below the picture of this object

public RdlSendable setDisplayText (String text)

Sets a text component for this object.

public RdlSendable setDisplayThumbnailUrl (String displayThumbnailUrl)

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.

public RdlSendable setDisplayTitle (String title)

A title to display for this RDL

public RdlSendable setJsonMetadata (JSONObject json)

Attach json-encoded metadata to this object.

public RdlSendable setNoun (String noun)

User-visible type information for this RDL.

public RdlSendable setPayload (byte[] payload)

Append a small binary payload to this object.

public 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.