# Class SharedContent.Item

java.lang.Object
com.codename1.share.SharedContent.Item

Enclosing class:
  `SharedContent`

public static final class SharedContent.Item extends Object
A single item within a shared payload.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getFilePath()`
  Returns the `FileSystemStorage` path for file and image items, or null for textual items.
  `String`
  `getMimeType()`
  Returns the MIME type of the item, or null if unknown.
  `String`
  `getText()`
  Returns the textual value for text and URL items, or null for file items.
  `String`
  `getTitle()`
  Returns an optional title for the item, or null.
  `int`
  `getType()`
  Returns the item type, one of the `TYPE_` constants.

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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