public static final class SharedContent.Item
- Object
- SharedContent.Item
A single item within a shared payload.
Methods
public int getType() | Returns the item type, one of the TYPE_ constants. |
public String getMimeType() | Returns the MIME type of the item, or null if unknown. |
public String getText() | Returns the textual value for text and URL items, or null for file items. |
public String getFilePath() | Returns the FileSystemStorage path for file and image items, or null for textual items. |
public String getTitle() | Returns an optional title for the item, or null. |
Inherited methods
Method details
getType
public int getType()Returns the item type, one of the
TYPE_ constants.Returns
the item type
getMimeType
public String getMimeType()Returns the MIME type of the item, or null if unknown.
Returns
the MIME type, or null
getText
public String getText()Returns the textual value for text and URL items, or null for file items.
Returns
the text, or null
getFilePath
public String getFilePath()Returns the
FileSystemStorage path for file and image items, or null for
textual items.Returns
the file path, or null
getTitle
public String getTitle()Returns an optional title for the item, or null.
Returns
the title, or null