# Class SMSShare

java.lang.Object
com.codename1.ui.Command
com.codename1.share.ShareService
com.codename1.share.SMSShare

All Implemented Interfaces:
  `ActionListener<ActionEvent>`

public class SMSShare extends ShareService
SMS Sharing service

- ## Field Summary

  ### Fields inherited from class Command

  `DESKTOP_MENU, DESKTOP_MENU_ABOUT, DESKTOP_MENU_APP, DESKTOP_MENU_EDIT, DESKTOP_MENU_FILE, DESKTOP_MENU_HELP, DESKTOP_MENU_PREFERENCES, DESKTOP_MENU_QUIT, DESKTOP_MENU_VIEW, DESKTOP_MENU_WINDOW, DESKTOP_SHORTCUT_KEY, DESKTOP_SHORTCUT_MODIFIER_ALT, DESKTOP_SHORTCUT_MODIFIER_PRIMARY, DESKTOP_SHORTCUT_MODIFIER_SHIFT, DESKTOP_SHORTCUT_MODIFIERS`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SMSShare()`
  Default Constructor

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `canShareImage()`
  The implementing service needs to declare if it is capable to share an image
  `Image`
  `getIcon()`
  Returns the icon representing the command
  `void`
  `share(String toShare)`
  This is the sharing method which should be implemented by the service.

  ### Methods inherited from class ShareService

  `actionPerformed, deliverResult, finish, getOriginal, getShareResultListener, setImage, setMessage, setOriginalForm, setShareResultListener, share`

  ### Methods inherited from class Command

  `create, createMaterial, equals, getClientProperty, getCommandName, getDesktopMenu, getDesktopShortcutKeyChar, getDesktopShortcutModifiers, getDisabledIcon, getIconFont, getIconGapMM, getId, getMaterialIcon, getMaterialIconSize, getPressedIcon, getRolloverIcon, hashCode, isDisposesDialog, isEnabled, putClientProperty, setCommandName, setDesktopMenu, setDesktopShortcut, setDesktopShortcut, setDisabledIcon, setDisposesDialog, setEnabled, setIcon, setIconFont, setIconGapMM, setMaterialIcon, setMaterialIconSize, setPressedIcon, setRolloverIcon, toString`

  ### Methods inherited from class Object

  `clone, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### SMSShare

    public SMSShare()
    Default Constructor

- ## Method Details

  - ### getIcon

    public Image getIcon()
    Description copied from class: `Command`

    Returns the icon representing the command

    ###### Returns

    an icon representing the command

    Overrides:
      `getIcon` in class `Command`

  - ### share

    public void share(String toShare)

    This is the sharing method which should be implemented by the service.

    ###### Parameters

    - `text`: text to share
    Specified by:
      `share` in class `ShareService`

  - ### canShareImage

    public boolean canShareImage()

    The implementing service needs to declare if it is capable to share an image

    ###### Returns

    true if the service can share images

    Specified by:
      `canShareImage` in class `ShareService`