# 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

- ## 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, finish, getOriginal, setImage, setMessage, setOriginalForm, share`

  ### Methods inherited from class Command

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

  ### Methods inherited from class Object

  `clone, finalize, 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`