Class SharedContent.Item
java.lang.Object
com.codename1.share.SharedContent.Item
- Enclosing class:
SharedContent
A single item within a shared payload.
-
Method Summary
Modifier and TypeMethodDescriptionReturns theFileSystemStoragepath for file and image items, or null for textual items.Returns the MIME type of the item, or null if unknown.getText()Returns the textual value for text and URL items, or null for file items.getTitle()Returns an optional title for the item, or null.intgetType()Returns the item type, one of theTYPE_constants.
-
Method Details
-
getType
public int getType()Returns the item type, one of the
TYPE_constants.Returns
the item type
-
getMimeType
Returns the MIME type of the item, or null if unknown.
Returns
the MIME type, or null
-
getText
Returns the textual value for text and URL items, or null for file items.
Returns
the text, or null
-
getFilePath
Returns the
FileSystemStoragepath for file and image items, or null for textual items.Returns
the file path, or null
-
getTitle
Returns an optional title for the item, or null.
Returns
the title, or null
-