| java.lang.Object | |
| ↳ | mobisocial.omlib.sendable.SendUtils |
A factory for creating various types of senable messages.
Use send(Uri, Sendable) to send a message.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| SendUtils() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static CustomSendable |
createCustom(String type)
Creates an object with user-defined type.
| ||||||||||
| static FileSendable | createFile(Uri fileUri, String mimeType) | ||||||||||
| static Sendable | createMiniclip(String video, String thumbnail) | ||||||||||
| static PictureSendable |
createPicture(Uri imageUri)
Creates a sendable picture object for a given resource.
| ||||||||||
| static RdlSendable |
createRdl()
Creates a RDL (Rich Deep Link) sendable object. | ||||||||||
| static TextSendable |
createText(String text)
Creates a simple text message.
| ||||||||||
| static Sendable |
createTextOrStory(OmletApi api, String text)
If the text represents a link, makes a network request to attempt
to generate a 'story' sendable representing the web page.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates an object with user-defined type. The type must be prefixed with "+" to avoid collisions with common obj types. Custom types are not rendered in a conversation.
Creates a sendable picture object for a given resource. The uri may be a local file,
a content:// uri, or a web resource.
If the text represents a link, makes a network request to attempt
to generate a 'story' sendable representing the web page. If the request
fails or the text is not a link, a TextSendable is returned.